Skip to content

Set a post's thumbnail

Sets or replaces the custom thumbnail of a post already on the platform, from a public https JPEG or PNG (YouTube: up to 2 MB, 1280×720, verified channel). A post still scheduled takes metadata.thumbnailUrl instead.

Needs the publish permission.

PUT
https://mixetape.com/api/v1/posts/{id}/thumbnail
PermissionpublishWorks on

Authorisation

  • apiKeyHTTPrequired

Path parameters

  • idstringrequired

    The post's id

Request bodyJSONrequired

  • imageUrlstringrequired

Returns

200

The post.

JSON
  • postobjectrequired
    18 properties
    • idstringrequired
    • accountIdstringrequired
    • providerstringrequired
    • mediaUrlstringrequired

      The first file

    • mediaarray ofobjectrequired

      Every file, in order

      2 properties
      • urlstringrequired
      • kindvideoorimagerequired
    • scheduledAtstringrequired

      When it goes live

      format: date-time
    • statusscheduledorpublishingoruploadedorpublishedorfailedorpaused+1 morerequired

      scheduled: waiting in mixetape, still editable; publishing: on its way; uploaded: on the platform, live at scheduledAt; published: live; failed: see error

    • attemptsintegerrequired
    • groupIdoptionalstring | null

      The group it came from

    • captionoptionalstring | null
    • metadataoptionalobject | null

      The platform's own fields

    • leadMinutesoptionalinteger | null

      Sent this long before scheduledAt

    • platformPostIdoptionalstring | null
    • platformUrloptionalstring | null
    • erroroptionalstring | null

      Why it failed, when it did

    • publishedAtoptionalstring | null
      format: date-time
    • createdAtoptionalstring
      format: date-time
    • updatedAtoptionalstring
      format: date-time

400

The request is invalid; error.code says how (invalid_field, missing_field, unknown_field, media_not_supported, …) and error.field which field.

JSON
  • errorobjectrequired
    3 properties
    • codeinvalid_requestorinvalid_fieldormissing_fieldorunknown_fieldorunauthorizedormissing_permission+22 morerequired

      A stable code to branch on:

      • invalid_request: The request is malformed, e.g. the body is not a JSON object
      • invalid_field: A field has the wrong type or value (see field)
      • missing_field: A required field is missing (see field)
      • unknown_field: A field this endpoint does not take, often a typo (see field)
      • unauthorized: No valid API key
      • missing_permission: The API key lacks the permission this needs
      • forbidden: Not allowed for this caller
      • not_found: Not found, or not yours
      • method_not_allowed: The path exists but not with this method
      • invalid_post_state: The post's status does not allow this, e.g. cancelling a published post
      • account_needs_reconnect: The channel must be connected again before it can post
      • file_not_ready: The file's upload is not finished
      • media_not_supported: The platform cannot take these files as one post
      • not_supported_by_platform: The platform has no such feature
      • nothing_to_publish: The selection or group has no files
      • already_exists: Something with that name already exists
      • conflict: Not possible in the current state
      • idempotency_key_reused: The Idempotency-Key was used before with a different request
      • idempotency_in_progress: A request with this Idempotency-Key is still running
      • source_unreachable: The file at the given URL could not be fetched; check it is public
      • platform_error: The platform refused or failed the call; the message says why
      • rate_limited: Too many requests; wait Retry-After seconds
      • platform_unavailable: mixetape cannot connect that platform yet
      • plan_required: The account has no active plan; choose one at /subscribe
      • channel_locked: The channel is locked: the plan covers fewer channels than are connected
      • channel_limit_reached: Connecting this would go past the channels the plan covers
      • daily_limit_reached: The channel already has the most posts allowed on that day
      • internal_error: Something failed on mixetape's side
    • messagestringrequired

      What went wrong, in plain words

    • fieldoptionalstring

      The input field it is about, if any

401

No valid API key.

JSON
  • errorobjectrequired
    3 properties
    • codeinvalid_requestorinvalid_fieldormissing_fieldorunknown_fieldorunauthorizedormissing_permission+22 morerequired

      A stable code to branch on:

      • invalid_request: The request is malformed, e.g. the body is not a JSON object
      • invalid_field: A field has the wrong type or value (see field)
      • missing_field: A required field is missing (see field)
      • unknown_field: A field this endpoint does not take, often a typo (see field)
      • unauthorized: No valid API key
      • missing_permission: The API key lacks the permission this needs
      • forbidden: Not allowed for this caller
      • not_found: Not found, or not yours
      • method_not_allowed: The path exists but not with this method
      • invalid_post_state: The post's status does not allow this, e.g. cancelling a published post
      • account_needs_reconnect: The channel must be connected again before it can post
      • file_not_ready: The file's upload is not finished
      • media_not_supported: The platform cannot take these files as one post
      • not_supported_by_platform: The platform has no such feature
      • nothing_to_publish: The selection or group has no files
      • already_exists: Something with that name already exists
      • conflict: Not possible in the current state
      • idempotency_key_reused: The Idempotency-Key was used before with a different request
      • idempotency_in_progress: A request with this Idempotency-Key is still running
      • source_unreachable: The file at the given URL could not be fetched; check it is public
      • platform_error: The platform refused or failed the call; the message says why
      • rate_limited: Too many requests; wait Retry-After seconds
      • platform_unavailable: mixetape cannot connect that platform yet
      • plan_required: The account has no active plan; choose one at /subscribe
      • channel_locked: The channel is locked: the plan covers fewer channels than are connected
      • channel_limit_reached: Connecting this would go past the channels the plan covers
      • daily_limit_reached: The channel already has the most posts allowed on that day
      • internal_error: Something failed on mixetape's side
    • messagestringrequired

      What went wrong, in plain words

    • fieldoptionalstring

      The input field it is about, if any

403

The key lacks the permission this needs.

JSON
  • errorobjectrequired
    3 properties
    • codeinvalid_requestorinvalid_fieldormissing_fieldorunknown_fieldorunauthorizedormissing_permission+22 morerequired

      A stable code to branch on:

      • invalid_request: The request is malformed, e.g. the body is not a JSON object
      • invalid_field: A field has the wrong type or value (see field)
      • missing_field: A required field is missing (see field)
      • unknown_field: A field this endpoint does not take, often a typo (see field)
      • unauthorized: No valid API key
      • missing_permission: The API key lacks the permission this needs
      • forbidden: Not allowed for this caller
      • not_found: Not found, or not yours
      • method_not_allowed: The path exists but not with this method
      • invalid_post_state: The post's status does not allow this, e.g. cancelling a published post
      • account_needs_reconnect: The channel must be connected again before it can post
      • file_not_ready: The file's upload is not finished
      • media_not_supported: The platform cannot take these files as one post
      • not_supported_by_platform: The platform has no such feature
      • nothing_to_publish: The selection or group has no files
      • already_exists: Something with that name already exists
      • conflict: Not possible in the current state
      • idempotency_key_reused: The Idempotency-Key was used before with a different request
      • idempotency_in_progress: A request with this Idempotency-Key is still running
      • source_unreachable: The file at the given URL could not be fetched; check it is public
      • platform_error: The platform refused or failed the call; the message says why
      • rate_limited: Too many requests; wait Retry-After seconds
      • platform_unavailable: mixetape cannot connect that platform yet
      • plan_required: The account has no active plan; choose one at /subscribe
      • channel_locked: The channel is locked: the plan covers fewer channels than are connected
      • channel_limit_reached: Connecting this would go past the channels the plan covers
      • daily_limit_reached: The channel already has the most posts allowed on that day
      • internal_error: Something failed on mixetape's side
    • messagestringrequired

      What went wrong, in plain words

    • fieldoptionalstring

      The input field it is about, if any

404

Not found, or not yours.

JSON
  • errorobjectrequired
    3 properties
    • codeinvalid_requestorinvalid_fieldormissing_fieldorunknown_fieldorunauthorizedormissing_permission+22 morerequired

      A stable code to branch on:

      • invalid_request: The request is malformed, e.g. the body is not a JSON object
      • invalid_field: A field has the wrong type or value (see field)
      • missing_field: A required field is missing (see field)
      • unknown_field: A field this endpoint does not take, often a typo (see field)
      • unauthorized: No valid API key
      • missing_permission: The API key lacks the permission this needs
      • forbidden: Not allowed for this caller
      • not_found: Not found, or not yours
      • method_not_allowed: The path exists but not with this method
      • invalid_post_state: The post's status does not allow this, e.g. cancelling a published post
      • account_needs_reconnect: The channel must be connected again before it can post
      • file_not_ready: The file's upload is not finished
      • media_not_supported: The platform cannot take these files as one post
      • not_supported_by_platform: The platform has no such feature
      • nothing_to_publish: The selection or group has no files
      • already_exists: Something with that name already exists
      • conflict: Not possible in the current state
      • idempotency_key_reused: The Idempotency-Key was used before with a different request
      • idempotency_in_progress: A request with this Idempotency-Key is still running
      • source_unreachable: The file at the given URL could not be fetched; check it is public
      • platform_error: The platform refused or failed the call; the message says why
      • rate_limited: Too many requests; wait Retry-After seconds
      • platform_unavailable: mixetape cannot connect that platform yet
      • plan_required: The account has no active plan; choose one at /subscribe
      • channel_locked: The channel is locked: the plan covers fewer channels than are connected
      • channel_limit_reached: Connecting this would go past the channels the plan covers
      • daily_limit_reached: The channel already has the most posts allowed on that day
      • internal_error: Something failed on mixetape's side
    • messagestringrequired

      What went wrong, in plain words

    • fieldoptionalstring

      The input field it is about, if any

409

Not possible in its current state: invalid_post_state, account_needs_reconnect, file_not_ready, idempotency_in_progress, …

JSON
  • errorobjectrequired
    3 properties
    • codeinvalid_requestorinvalid_fieldormissing_fieldorunknown_fieldorunauthorizedormissing_permission+22 morerequired

      A stable code to branch on:

      • invalid_request: The request is malformed, e.g. the body is not a JSON object
      • invalid_field: A field has the wrong type or value (see field)
      • missing_field: A required field is missing (see field)
      • unknown_field: A field this endpoint does not take, often a typo (see field)
      • unauthorized: No valid API key
      • missing_permission: The API key lacks the permission this needs
      • forbidden: Not allowed for this caller
      • not_found: Not found, or not yours
      • method_not_allowed: The path exists but not with this method
      • invalid_post_state: The post's status does not allow this, e.g. cancelling a published post
      • account_needs_reconnect: The channel must be connected again before it can post
      • file_not_ready: The file's upload is not finished
      • media_not_supported: The platform cannot take these files as one post
      • not_supported_by_platform: The platform has no such feature
      • nothing_to_publish: The selection or group has no files
      • already_exists: Something with that name already exists
      • conflict: Not possible in the current state
      • idempotency_key_reused: The Idempotency-Key was used before with a different request
      • idempotency_in_progress: A request with this Idempotency-Key is still running
      • source_unreachable: The file at the given URL could not be fetched; check it is public
      • platform_error: The platform refused or failed the call; the message says why
      • rate_limited: Too many requests; wait Retry-After seconds
      • platform_unavailable: mixetape cannot connect that platform yet
      • plan_required: The account has no active plan; choose one at /subscribe
      • channel_locked: The channel is locked: the plan covers fewer channels than are connected
      • channel_limit_reached: Connecting this would go past the channels the plan covers
      • daily_limit_reached: The channel already has the most posts allowed on that day
      • internal_error: Something failed on mixetape's side
    • messagestringrequired

      What went wrong, in plain words

    • fieldoptionalstring

      The input field it is about, if any

429

Over 120 requests a minute (rate_limited); wait and retry.

JSON
  • errorobjectrequired
    3 properties
    • codeinvalid_requestorinvalid_fieldormissing_fieldorunknown_fieldorunauthorizedormissing_permission+22 morerequired

      A stable code to branch on:

      • invalid_request: The request is malformed, e.g. the body is not a JSON object
      • invalid_field: A field has the wrong type or value (see field)
      • missing_field: A required field is missing (see field)
      • unknown_field: A field this endpoint does not take, often a typo (see field)
      • unauthorized: No valid API key
      • missing_permission: The API key lacks the permission this needs
      • forbidden: Not allowed for this caller
      • not_found: Not found, or not yours
      • method_not_allowed: The path exists but not with this method
      • invalid_post_state: The post's status does not allow this, e.g. cancelling a published post
      • account_needs_reconnect: The channel must be connected again before it can post
      • file_not_ready: The file's upload is not finished
      • media_not_supported: The platform cannot take these files as one post
      • not_supported_by_platform: The platform has no such feature
      • nothing_to_publish: The selection or group has no files
      • already_exists: Something with that name already exists
      • conflict: Not possible in the current state
      • idempotency_key_reused: The Idempotency-Key was used before with a different request
      • idempotency_in_progress: A request with this Idempotency-Key is still running
      • source_unreachable: The file at the given URL could not be fetched; check it is public
      • platform_error: The platform refused or failed the call; the message says why
      • rate_limited: Too many requests; wait Retry-After seconds
      • platform_unavailable: mixetape cannot connect that platform yet
      • plan_required: The account has no active plan; choose one at /subscribe
      • channel_locked: The channel is locked: the plan covers fewer channels than are connected
      • channel_limit_reached: Connecting this would go past the channels the plan covers
      • daily_limit_reached: The channel already has the most posts allowed on that day
      • internal_error: Something failed on mixetape's side
    • messagestringrequired

      What went wrong, in plain words

    • fieldoptionalstring

      The input field it is about, if any

502

Something mixetape depends on failed: the file at a URL could not be fetched (source_unreachable) or the platform refused the call (platform_error).

JSON
  • errorobjectrequired
    3 properties
    • codeinvalid_requestorinvalid_fieldormissing_fieldorunknown_fieldorunauthorizedormissing_permission+22 morerequired

      A stable code to branch on:

      • invalid_request: The request is malformed, e.g. the body is not a JSON object
      • invalid_field: A field has the wrong type or value (see field)
      • missing_field: A required field is missing (see field)
      • unknown_field: A field this endpoint does not take, often a typo (see field)
      • unauthorized: No valid API key
      • missing_permission: The API key lacks the permission this needs
      • forbidden: Not allowed for this caller
      • not_found: Not found, or not yours
      • method_not_allowed: The path exists but not with this method
      • invalid_post_state: The post's status does not allow this, e.g. cancelling a published post
      • account_needs_reconnect: The channel must be connected again before it can post
      • file_not_ready: The file's upload is not finished
      • media_not_supported: The platform cannot take these files as one post
      • not_supported_by_platform: The platform has no such feature
      • nothing_to_publish: The selection or group has no files
      • already_exists: Something with that name already exists
      • conflict: Not possible in the current state
      • idempotency_key_reused: The Idempotency-Key was used before with a different request
      • idempotency_in_progress: A request with this Idempotency-Key is still running
      • source_unreachable: The file at the given URL could not be fetched; check it is public
      • platform_error: The platform refused or failed the call; the message says why
      • rate_limited: Too many requests; wait Retry-After seconds
      • platform_unavailable: mixetape cannot connect that platform yet
      • plan_required: The account has no active plan; choose one at /subscribe
      • channel_locked: The channel is locked: the plan covers fewer channels than are connected
      • channel_limit_reached: Connecting this would go past the channels the plan covers
      • daily_limit_reached: The channel already has the most posts allowed on that day
      • internal_error: Something failed on mixetape's side
    • messagestringrequired

      What went wrong, in plain words

    • fieldoptionalstring

      The input field it is about, if any

Navigation

Type to search…

↑↓ navigate↵ selectEsc close