Skip to content

Docs

discard_empty_content

Archive a content item only if it is still empty: no title of its own (blank or "Untitled content"), no draft text or media, and no channel versions; anything with content is left alone (`archived: false`). The editor calls it when a person leaves a new item they never wrote in; do the same after create_content if you end up not using the item. Empty items never show in lists, the board or the calendar. Restore with archive_content `archived: false`.

Archive a content item only if it is still empty: no title of its own (blank or "Untitled content"), no draft text or media, and no channel versions; anything with content is left alone (archived: false). The editor calls it when a person leaves a new item they never wrote in; do the same after create_content if you end up not using the item. Empty items never show in lists, the board or the calendar. Restore with archive_content archived: false.

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"
    }
  },
  "required": [
    "workspaceId",
    "pieceId"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "archived": {
      "type": "boolean"
    }
  },
  "required": [
    "archived"
  ],
  "type": "object"
}

Errors

[]

Annotations

{
  "destructiveHint": true,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": false,
  "title": "Discard empty content"
}