Skip to content

Change a group

The given fields only (null clears one). fileIds replaces its files and their order; metadata is merged.

Needs the groups permission.

PATCH
https://mixetape.com/api/v1/groups/{id}
PermissiongroupsWorks on

Authorisation

  • apiKeyHTTPrequired

Path parameters

  • idstringrequired

    The group's id

Request bodyJSONrequired

  • titleoptionalstring

    Title where the platform has one (YouTube, Pinterest)

  • captionoptionalstring

    The post text; the default on every platform

  • descriptionoptionalstring

    Longer description where the platform has one

  • fileIdsoptionalarray ofstring

    Files from storage, in order — a carousel's order. Each must be ready (its upload finished); a file in another group moves here. On update this replaces the group's files; the ones left out stay in storage.

  • metadataoptionalobject

    Fields every platform shares (tags, thumbnailUrl, firstComment, …) and platforms: { youtube: { … }, instagram: { … } } with each platform's overrides (the same fields as a post's metadata on that platform; a caption there replaces the caption on that platform). On update it is merged; null clears a field or a platform.

Returns

200

The group.

JSON
  • groupobjectrequired
    10 properties
    • idstringrequired
    • metadataobjectrequired
    • filesarray ofobjectrequired

      Its ready files, in order

      15 properties
      • idstringrequired
      • urlstringrequired

        r2:// URL: works wherever a post takes a media URL

      • namestringrequired
      • kindvideoorimageorotherrequired
      • contentTypestringrequired
      • sizeintegerrequired

        Bytes

      • statusuploadingorreadyrequired

        uploading: waiting for its upload to finish

      • createdAtstringrequired
        format: date-time
      • expiresAtstringrequired

        When storage deletes it, if nothing needs it then

        format: date-time
      • publicUrloptionalstring
      • widthoptionalinteger | null
      • heightoptionalinteger | null
      • durationMsoptionalinteger | null
      • orientationoptionalverticalorhorizontalorsquareornull
      • groupIdoptionalstring | null
    • postsarray ofobjectrequired

      The posts published from it

      6 properties
      • idoptionalstring
      • accountIdoptionalstring
      • provideroptionalstring
      • statusoptionalstring
      • scheduledAtoptionalstring
        format: date-time
      • platformUrloptionalstring | null
    • createdByagentoruserrequired

      Who made it

    • createdAtstringrequired
      format: date-time
    • updatedAtstringrequired
      format: date-time
    • titleoptionalstring | null
    • captionoptionalstring | null
    • descriptionoptionalstring | null

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

Navigation

Type to search…

↑↓ navigate↵ selectEsc close