Skip to content

Docs

update_sandbox_settings

Change how a Sandbox account behaves, to rehearse failures. `failNext` makes the next `times` publishes (default 1) fail with `error`, then clears itself (null clears it now); with timeout_after_send the post DOES go live but the answer is lost. `tokenExpired` makes health checks ask for a reconnect and publishing fail with auth_expired. `latencyMs` slows every response. `creatorInfo` (accounts that behave like TikTok) sets what TikTok's creator info answers: comments, Duet or Stitch turned off by the creator, maxVideoPostDurationSec, privacyLevelOptions, or `cannotPost` (the creator can't post right now); null goes back to TikTok's defaults. Only fields you pass change. Works only on Sandbox accounts.

Change how a Sandbox account behaves, to rehearse failures. failNext makes the next times publishes (default 1) fail with error, then clears itself (null clears it now); with timeout_after_send the post DOES go live but the answer is lost. tokenExpired makes health checks ask for a reconnect and publishing fail with auth_expired. latencyMs slows every response. creatorInfo (accounts that behave like TikTok) sets what TikTok's creator info answers: comments, Duet or Stitch turned off by the creator, maxVideoPostDurationSec, privacyLevelOptions, or cannotPost (the creator can't post right now); null goes back to TikTok's defaults. Only fields you pass change. Works only on Sandbox accounts.

Access and cost

  • Kind: mutation
  • Scope: workspace
  • Actors: member, agent
  • Credits: Free
  • Requires confirmation: false
  • Accepts idempotency key: false

Input schema

{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "channelAccountId": {
      "format": "uuid",
      "type": "string"
    },
    "failNext": {
      "anyOf": [
        {
          "properties": {
            "error": {
              "enum": [
                "auth_expired",
                "rate_limited",
                "rejected_content",
                "media_unsupported",
                "platform_error",
                "timeout_after_send",
                "not_permitted"
              ],
              "type": "string"
            },
            "times": {
              "default": 1,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "message": {
              "maxLength": 500,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "error"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "tokenExpired": {
      "type": "boolean"
    },
    "latencyMs": {
      "maximum": 60000,
      "minimum": 0,
      "type": "integer"
    },
    "creatorInfo": {
      "anyOf": [
        {
          "properties": {
            "commentDisabled": {
              "type": "boolean"
            },
            "duetDisabled": {
              "type": "boolean"
            },
            "stitchDisabled": {
              "type": "boolean"
            },
            "maxVideoPostDurationSec": {
              "maximum": 3600,
              "minimum": 1,
              "type": "integer"
            },
            "privacyLevelOptions": {
              "items": {
                "enum": [
                  "PUBLIC_TO_EVERYONE",
                  "MUTUAL_FOLLOW_FRIENDS",
                  "FOLLOWER_OF_CREATOR",
                  "SELF_ONLY"
                ],
                "type": "string"
              },
              "minItems": 1,
              "type": "array"
            },
            "cannotPost": {
              "anyOf": [
                {
                  "enum": [
                    "spam_risk_too_many_posts",
                    "spam_risk_user_banned_from_posting",
                    "reached_active_user_cap"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "workspaceId",
    "channelAccountId"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "settings": {
      "additionalProperties": false,
      "properties": {
        "failNext": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "error": {
                  "enum": [
                    "auth_expired",
                    "rate_limited",
                    "rejected_content",
                    "media_unsupported",
                    "platform_error",
                    "timeout_after_send",
                    "not_permitted"
                  ],
                  "type": "string"
                },
                "remaining": {
                  "maximum": 100,
                  "minimum": 1,
                  "type": "integer"
                },
                "message": {
                  "maxLength": 500,
                  "type": "string"
                }
              },
              "required": [
                "error",
                "remaining"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "tokenExpired": {
          "default": false,
          "type": "boolean"
        },
        "latencyMs": {
          "default": 0,
          "maximum": 60000,
          "minimum": 0,
          "type": "integer"
        },
        "creatorInfo": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "commentDisabled": {
                  "type": "boolean"
                },
                "duetDisabled": {
                  "type": "boolean"
                },
                "stitchDisabled": {
                  "type": "boolean"
                },
                "maxVideoPostDurationSec": {
                  "maximum": 3600,
                  "minimum": 1,
                  "type": "integer"
                },
                "privacyLevelOptions": {
                  "items": {
                    "enum": [
                      "PUBLIC_TO_EVERYONE",
                      "MUTUAL_FOLLOW_FRIENDS",
                      "FOLLOWER_OF_CREATOR",
                      "SELF_ONLY"
                    ],
                    "type": "string"
                  },
                  "minItems": 1,
                  "type": "array"
                },
                "cannotPost": {
                  "anyOf": [
                    {
                      "enum": [
                        "spam_risk_too_many_posts",
                        "spam_risk_user_banned_from_posting",
                        "reached_active_user_cap"
                      ],
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "failNext",
        "tokenExpired",
        "latencyMs",
        "creatorInfo"
      ],
      "type": "object"
    }
  },
  "required": [
    "settings"
  ],
  "type": "object"
}

Errors

[
  "not_sandbox"
]

Annotations

{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": false,
  "title": "Set Sandbox failure switches"
}