Skip to content

Create a write-only grant for a reserved asset

Publishing
post /v1/publishing/media/upload-grant

Create a grant for one reserved object. It expires within five minutes and never after the reservation. PUT the unchanged file directly to the opaque URL with the required headers and exact Content-Length. Reject redirects. Omit Benchmark credentials. Keep the URL private. The grant permits only conditional creation by PUT. Use a new request ID for a deliberate new grant after expiry or rotation. This operation uses no credits.

Authentication

  • MemberBearer bearer token

    Send an AuthKit member OAuth access token in the Authorization header. The audience is the existing MCP resource URL.

Request body

  • assetId string · uuid required
  • requestId string · uuid required

Responses

  • 200

    The short-lived PUT URL and required headers. PUT the unchanged file to this URL with these headers and the exact Content-Length. Omit Benchmark credentials. Reject redirects. Keep the URL private. This operation uses no credits.

  • 400

    The request or file metadata is invalid.

  • 401

    The bearer credential is missing or invalid.

  • 403

    The operation requires member access and Posts access.

  • 404

    The resource was not found.

  • 409

    The asset state, reservation, grant intent, quota, or request ID conflicts with the command.

  • 429

    The Cloudflare rate limiter rejected the request.

  • 500

    The request failed without exposing internal diagnostics.

  • 503

    The service or upload configuration is unavailable.