publications_schedule
Publicar agora ou agendar e reagendar um destino.
REST · POST /api/v1/operations/publications_schedule · MCP · publications_schedule
Permissão necessária · publish. Envie Idempotency-Key no REST ou requestKey no MCP. Substitua IDs e datas do exemplo antes de executar.
Exemplo de entrada
{
"id": "RECORD_ID",
"version": 1,
"timezone": "America/Sao_Paulo",
"at": "2030-07-01T18:00:00-03:00"
}
O REST retorna a saída abaixo diretamente. No MCP leia structuredContent.result. Consulte o contrato atual em /api/v1/openapi.json.
Em 401 confira a validade da credencial. Em 403 confira papel, escopos e contas. Em 409 releia o registro antes de tentar novamente.
JSON Schema · Entrada
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"version": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"mode": {
"type": "string",
"enum": [
"best",
"schedule",
"now"
]
},
"timezone": {
"type": "string",
"maxLength": 80
},
"tiktokConsent": {
"type": "boolean",
"const": true
},
"tiktok": {
"type": "object",
"properties": {
"privacy": {
"type": "string",
"enum": [
"PUBLIC_TO_EVERYONE",
"FOLLOWER_OF_CREATOR",
"MUTUAL_FOLLOW_FRIENDS",
"SELF_ONLY"
]
},
"comment": {
"type": "boolean"
},
"duet": {
"type": "boolean"
},
"stitch": {
"type": "boolean"
},
"commercial": {
"type": "boolean"
},
"ownBrand": {
"type": "boolean"
},
"brandedContent": {
"type": "boolean"
},
"aiGenerated": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"required": [
"id",
"version",
"timezone"
],
"additionalProperties": false
}
JSON Schema · Saída
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"status": {
"type": "string"
},
"version": {
"type": "number"
},
"due_at": {
"type": "string"
}
},
"required": [
"id",
"status",
"version",
"due_at"
],
"additionalProperties": {}
}