publications_suggest_time
Find the next free suggested time and report its source and sample size.
REST · POST /api/v1/operations/publications_suggest_time · MCP · publications_suggest_time
Required scope · read. This operation reads data.
Example request body
{
"accountId": "ACCOUNT_ID",
"timezone": "America/Sao_Paulo"
}
REST returns the output below directly. In MCP read structuredContent.result. Check the current installation at /api/v1/openapi.json.
For 401 check credential validity. For 403 inspect the role, scopes and selected accounts. For 409 reread the record before retrying.
JSON Schema · Input
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"accountId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"timezone": {
"type": "string",
"maxLength": 80
},
"after": {
"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)))$"
}
},
"required": [
"accountId",
"timezone"
],
"additionalProperties": false
}
JSON Schema · Output
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"accountId": {
"type": "string"
},
"timezone": {
"type": "string"
},
"at": {
"type": "string"
},
"source": {
"type": "string",
"enum": [
"history",
"preferences",
"estimate"
]
},
"sampleSize": {
"type": "number"
},
"windows": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"accountId",
"timezone",
"at",
"source",
"sampleSize",
"windows"
],
"additionalProperties": {}
}