Creator publishing

Upload a creator image or video

Requires page:edit and configured media. JSON proxy upload: JPEG/PNG/WebP <=5 MiB; MP4/WebM <=20 MiB decoded. Only this route permits 28 MiB JSON. Preserve original key and bytes after unknown outcomes. UPLOAD_IN_PROGRESS means retry the same command after the active lease (60 seconds image / 150 seconds video). Current authority is checked again before finalization and replay. Cancellation cannot guarantee rollback of provider upload.

post/v1/partners/{partnerId}/creators/{externalCreatorId}/media

Request

  • Base URL
    https://comet-api.example.invalid
  • Auth
    API key in header x-api-key

Path parameters

partnerIdstring required
externalCreatorIdstring required

Headers

x-grant-generationstring required

Current operator-provisioned grant generation; numeric value must be a nonnegative safe integer.

Idempotency-Keystring required

Reuse the exact key and payload after an ambiguous write. Scoped to principal, realm, operation and page; current authority is rechecked.

Request body

schemaVersion1 required
fileNamestring required

Nonblank filename, at most 180 Unicode code points; no path separators or control characters.

mimeType'image/jpeg' | 'image/png' | 'image/webp' | 'video/mp4' | 'video/webm' required
dataBase64string byte required

Canonical base64, no data: prefix. Server checks canonical padding bits, decoded size and MIME/container match. 5 MiB images / 20 MiB videos; HTTP JSON body ceiling 28 MiB.

Response

Successful operation. POST operations use HTTP 201, including idempotent retries.

schemaVersion1 required

Changes

No recorded changes to this operation across all 1 revision of this API.