Scope
Protocol
1. Prepare
Authenticate with a session cookie, an
x-api-key header, or an OAuth bearer token. Browsers must send an Origin header that matches the application origin.
Response 200:
404 when the installation does not support staging, for example on Docker. Send the original request unchanged in that case.
2. Upload
size bytes.
3. Finalize
Send the original request with an empty body and the staging reference header:path and the same user as in step 1. The server replaces the body with the staged bytes, sets Content-Type to the stored contentType, and returns the normal RPC response.
Errors
A reference cannot be retried. If a finalization response is lost, check the result of the mutation before you stage and send it again.