Docs
archive_content
Archive content (hide it from the board and searches) or restore it with `archived: false`. Nothing is deleted. A content item with posts awaiting confirmation, scheduled or publishing can't be archived: cancel those schedules first (cancel_schedule), so nothing goes out from a hidden card.
Archive content (hide it from the board and searches) or restore it with archived: false. Nothing is deleted. A content item with posts awaiting confirmation, scheduled or publishing can't be archived: cancel those schedules first (cancel_schedule), so nothing goes out from a hidden card.
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"
},
"archived": {
"default": true,
"type": "boolean"
}
},
"required": [
"workspaceId",
"pieceId"
],
"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"
}
},
"required": [
"piece"
],
"type": "object"
}Errors
[
"has_scheduled_posts"
]Annotations
{
"destructiveHint": true,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": false,
"title": "Archive content"
}