Plan publishing files
Like planning a group, for files that are not in one: for each account of the given brands and accounts, whether these files can go there as one post and as what, what stops it, what is not ideal, and the caption and metadata the post would carry. Publishes nothing.
Needs the groups permission.
https://mixetape.com/api/v1/media/plangroupsWorks onAll platformsAuthorisation
Request bodyJSONrequired
Returns
200
The plan, account by account.
400
The request is invalid; error.code says how (invalid_field, missing_field, unknown_field, media_not_supported, …) and error.field which field.
- errorobject{ … }required
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 objectinvalid_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 keymissing_permission: The API key lacks the permission this needsforbidden: Not allowed for this callernot_found: Not found, or not yoursmethod_not_allowed: The path exists but not with this methodinvalid_post_state: The post's status does not allow this, e.g. cancelling a published postaccount_needs_reconnect: The channel must be connected again before it can postfile_not_ready: The file's upload is not finishedmedia_not_supported: The platform cannot take these files as one postnot_supported_by_platform: The platform has no such featurenothing_to_publish: The selection or group has no filesalready_exists: Something with that name already existsconflict: Not possible in the current stateidempotency_key_reused: The Idempotency-Key was used before with a different requestidempotency_in_progress: A request with this Idempotency-Key is still runningsource_unreachable: The file at the given URL could not be fetched; check it is publicplatform_error: The platform refused or failed the call; the message says whyrate_limited: Too many requests; wait Retry-After secondsplatform_unavailable: mixetape cannot connect that platform yetplan_required: The account has no active plan; choose one at /subscribechannel_locked: The channel is locked: the plan covers fewer channels than are connectedchannel_limit_reached: Connecting this would go past the channels the plan coversdaily_limit_reached: The channel already has the most posts allowed on that dayinternal_error: Something failed on mixetape's side
401
No valid API key.
- errorobject{ … }required
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 objectinvalid_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 keymissing_permission: The API key lacks the permission this needsforbidden: Not allowed for this callernot_found: Not found, or not yoursmethod_not_allowed: The path exists but not with this methodinvalid_post_state: The post's status does not allow this, e.g. cancelling a published postaccount_needs_reconnect: The channel must be connected again before it can postfile_not_ready: The file's upload is not finishedmedia_not_supported: The platform cannot take these files as one postnot_supported_by_platform: The platform has no such featurenothing_to_publish: The selection or group has no filesalready_exists: Something with that name already existsconflict: Not possible in the current stateidempotency_key_reused: The Idempotency-Key was used before with a different requestidempotency_in_progress: A request with this Idempotency-Key is still runningsource_unreachable: The file at the given URL could not be fetched; check it is publicplatform_error: The platform refused or failed the call; the message says whyrate_limited: Too many requests; wait Retry-After secondsplatform_unavailable: mixetape cannot connect that platform yetplan_required: The account has no active plan; choose one at /subscribechannel_locked: The channel is locked: the plan covers fewer channels than are connectedchannel_limit_reached: Connecting this would go past the channels the plan coversdaily_limit_reached: The channel already has the most posts allowed on that dayinternal_error: Something failed on mixetape's side
403
The key lacks the permission this needs.
- errorobject{ … }required
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 objectinvalid_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 keymissing_permission: The API key lacks the permission this needsforbidden: Not allowed for this callernot_found: Not found, or not yoursmethod_not_allowed: The path exists but not with this methodinvalid_post_state: The post's status does not allow this, e.g. cancelling a published postaccount_needs_reconnect: The channel must be connected again before it can postfile_not_ready: The file's upload is not finishedmedia_not_supported: The platform cannot take these files as one postnot_supported_by_platform: The platform has no such featurenothing_to_publish: The selection or group has no filesalready_exists: Something with that name already existsconflict: Not possible in the current stateidempotency_key_reused: The Idempotency-Key was used before with a different requestidempotency_in_progress: A request with this Idempotency-Key is still runningsource_unreachable: The file at the given URL could not be fetched; check it is publicplatform_error: The platform refused or failed the call; the message says whyrate_limited: Too many requests; wait Retry-After secondsplatform_unavailable: mixetape cannot connect that platform yetplan_required: The account has no active plan; choose one at /subscribechannel_locked: The channel is locked: the plan covers fewer channels than are connectedchannel_limit_reached: Connecting this would go past the channels the plan coversdaily_limit_reached: The channel already has the most posts allowed on that dayinternal_error: Something failed on mixetape's side
404
Not found, or not yours.
- errorobject{ … }required
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 objectinvalid_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 keymissing_permission: The API key lacks the permission this needsforbidden: Not allowed for this callernot_found: Not found, or not yoursmethod_not_allowed: The path exists but not with this methodinvalid_post_state: The post's status does not allow this, e.g. cancelling a published postaccount_needs_reconnect: The channel must be connected again before it can postfile_not_ready: The file's upload is not finishedmedia_not_supported: The platform cannot take these files as one postnot_supported_by_platform: The platform has no such featurenothing_to_publish: The selection or group has no filesalready_exists: Something with that name already existsconflict: Not possible in the current stateidempotency_key_reused: The Idempotency-Key was used before with a different requestidempotency_in_progress: A request with this Idempotency-Key is still runningsource_unreachable: The file at the given URL could not be fetched; check it is publicplatform_error: The platform refused or failed the call; the message says whyrate_limited: Too many requests; wait Retry-After secondsplatform_unavailable: mixetape cannot connect that platform yetplan_required: The account has no active plan; choose one at /subscribechannel_locked: The channel is locked: the plan covers fewer channels than are connectedchannel_limit_reached: Connecting this would go past the channels the plan coversdaily_limit_reached: The channel already has the most posts allowed on that dayinternal_error: Something failed on mixetape's side
409
Not possible in its current state: invalid_post_state, account_needs_reconnect, file_not_ready, idempotency_in_progress, …
- errorobject{ … }required
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 objectinvalid_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 keymissing_permission: The API key lacks the permission this needsforbidden: Not allowed for this callernot_found: Not found, or not yoursmethod_not_allowed: The path exists but not with this methodinvalid_post_state: The post's status does not allow this, e.g. cancelling a published postaccount_needs_reconnect: The channel must be connected again before it can postfile_not_ready: The file's upload is not finishedmedia_not_supported: The platform cannot take these files as one postnot_supported_by_platform: The platform has no such featurenothing_to_publish: The selection or group has no filesalready_exists: Something with that name already existsconflict: Not possible in the current stateidempotency_key_reused: The Idempotency-Key was used before with a different requestidempotency_in_progress: A request with this Idempotency-Key is still runningsource_unreachable: The file at the given URL could not be fetched; check it is publicplatform_error: The platform refused or failed the call; the message says whyrate_limited: Too many requests; wait Retry-After secondsplatform_unavailable: mixetape cannot connect that platform yetplan_required: The account has no active plan; choose one at /subscribechannel_locked: The channel is locked: the plan covers fewer channels than are connectedchannel_limit_reached: Connecting this would go past the channels the plan coversdaily_limit_reached: The channel already has the most posts allowed on that dayinternal_error: Something failed on mixetape's side
429
Over 120 requests a minute (rate_limited); wait and retry.
- errorobject{ … }required
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 objectinvalid_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 keymissing_permission: The API key lacks the permission this needsforbidden: Not allowed for this callernot_found: Not found, or not yoursmethod_not_allowed: The path exists but not with this methodinvalid_post_state: The post's status does not allow this, e.g. cancelling a published postaccount_needs_reconnect: The channel must be connected again before it can postfile_not_ready: The file's upload is not finishedmedia_not_supported: The platform cannot take these files as one postnot_supported_by_platform: The platform has no such featurenothing_to_publish: The selection or group has no filesalready_exists: Something with that name already existsconflict: Not possible in the current stateidempotency_key_reused: The Idempotency-Key was used before with a different requestidempotency_in_progress: A request with this Idempotency-Key is still runningsource_unreachable: The file at the given URL could not be fetched; check it is publicplatform_error: The platform refused or failed the call; the message says whyrate_limited: Too many requests; wait Retry-After secondsplatform_unavailable: mixetape cannot connect that platform yetplan_required: The account has no active plan; choose one at /subscribechannel_locked: The channel is locked: the plan covers fewer channels than are connectedchannel_limit_reached: Connecting this would go past the channels the plan coversdaily_limit_reached: The channel already has the most posts allowed on that dayinternal_error: Something failed on mixetape's side