Skip to content

Docs

set_content_status

Move content between the manual board columns: idea, drafting, in_review. Scheduled and Published follow the posts (Scheduled when every post that isn't skipped has a confirmed time, Published when all went live), so asking for them fails with `derived_status`. Moving to in_review opens a share link for reviewers if the item has none and returns its URL once as `shareLink` (send it to the reviewer); for an agent no link is made (`shareLink` is null): people create review links, so ask with request_review. The card goes to the bottom of its new column.

Move content between the manual board columns: idea, drafting, in_review. Scheduled and Published follow the posts (Scheduled when every post that isn't skipped has a confirmed time, Published when all went live), so asking for them fails with derived_status. Moving to in_review opens a share link for reviewers if the item has none and returns its URL once as shareLink (send it to the reviewer); for an agent no link is made (shareLink is null): people create review links, so ask with request_review. The card goes to the bottom of its new column.

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"
    },
    "pieceId": {
      "format": "uuid",
      "type": "string"
    },
    "status": {
      "enum": [
        "idea",
        "drafting",
        "in_review",
        "scheduled",
        "published"
      ],
      "type": "string"
    }
  },
  "required": [
    "workspaceId",
    "pieceId",
    "status"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "piece": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "workspaceId": {
          "format": "uuid",
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "status": {
          "enum": [
            "idea",
            "drafting",
            "in_review",
            "scheduled",
            "published"
          ],
          "type": "string"
        },
        "campaignLabels": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "ownerAccountId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "boardPosition": {
          "type": "string"
        },
        "archivedAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdByAccountId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdByAgentClientId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "format": "date-time",
          "type": "string"
        },
        "updatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "signoffRequired": {
          "type": "boolean"
        },
        "plannedFor": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "plannedTime": {
          "anyOf": [
            {
              "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "workspaceId",
        "title",
        "status",
        "campaignLabels",
        "ownerAccountId",
        "boardPosition",
        "archivedAt",
        "createdByAccountId",
        "createdByAgentClientId",
        "createdAt",
        "updatedAt",
        "signoffRequired"
      ],
      "type": "object"
    },
    "shareLink": {
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "shareLink": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "format": "uuid",
                  "type": "string"
                },
                "workspaceId": {
                  "format": "uuid",
                  "type": "string"
                },
                "pieceId": {
                  "format": "uuid",
                  "type": "string"
                },
                "expiresAt": {
                  "anyOf": [
                    {
                      "format": "date-time",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revokedAt": {
                  "anyOf": [
                    {
                      "format": "date-time",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "allowSignoff": {
                  "type": "boolean"
                },
                "lastUsedAt": {
                  "anyOf": [
                    {
                      "format": "date-time",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdByAccountId": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdByAgentClientId": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "format": "date-time",
                  "type": "string"
                }
              },
              "required": [
                "id",
                "workspaceId",
                "pieceId",
                "expiresAt",
                "revokedAt",
                "allowSignoff",
                "lastUsedAt",
                "createdByAccountId",
                "createdByAgentClientId",
                "createdAt"
              ],
              "type": "object"
            },
            "token": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "shareLink",
            "token",
            "url"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "piece",
    "shareLink"
  ],
  "type": "object"
}

Errors

[
  "illegal_transition",
  "derived_status"
]

Annotations

{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": false,
  "title": "Move content to a board column"
}