Sanity Library Reference Docs
    Preparing search index...

    Interface AgentActionAsyncBeta

    interface AgentActionAsync {
        async: true;
    }
    Index

    Properties

    Properties

    async: true

    When async: true, requests responds with status 201 and {_id} as response body as soon as the request is validated. The instruction operation will carry on in the background.

    When async: false (default), requests respond with status 200 and the document value after instruction has been applied.

    async: true is incompatible with noWrite, as async: true does not return the resulting document