company reserve media
company_reserve_mediaReserve an upload for an existing Agency draft. PUT exact bytes to uploadUrl using ALL uploadHeaders, no API key, then call company_complete_media. Use Company IDs only. For a YouTube thumbnail: purpose youtube_thumbnail, type image, JPEG/PNG <=2 MiB and >=640x360; complete, then save its mediaFileId in draft.platformSettings.youtube.thumbnail.mediaId. Thumbnails are auxiliary, not post images. On a lost response retry the identical body and idempotencyKey.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| purpose | No | ||
| fileName | Yes | ||
| sizeBytes | Yes | ||
| contentType | Yes | ||
| postGroupId | Yes | Exact ID returned by a Company tool; never a personal platformId | |
| workspaceId | Yes | Exact ID returned by a Company tool; never a personal platformId | |
| idempotencyKey | Yes | Stable visible-ASCII key, 1–255 characters, no comma/whitespace. On lost response retry the IDENTICAL body and key; never mint a new key |