OpenSocialDocumentation

accounts_set_publishing_windows

Save preferred daily publishing times for the account.

REST · POST /api/v1/operations/accounts_set_publishing_windows · MCP · accounts_set_publishing_windows

Required scope · publish. Send Idempotency-Key in REST or requestKey in MCP. Replace example IDs and times before running.

Example request body

{
  "accountId": "ACCOUNT_ID",
  "windows": [
    "12:00",
    "18:00"
  ]
}

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
    },
    "windows": {
      "maxItems": 24,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
      }
    }
  },
  "required": [
    "accountId",
    "windows"
  ],
  "additionalProperties": false
}

JSON Schema · Output

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string"
    },
    "windows": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "accountId",
    "windows"
  ],
  "additionalProperties": {}
}