workflow
archive
Archive a page
POST /wiki/rest/api/content/archive
| Flag | Type | Required | Description |
|---|---|---|---|
--id | string | No | page ID to archive (required) |
--no-wait | bool | No | return immediately without polling |
--timeout | string | No | timeout for async operation (e.g. 30s, 2m) |
Example:
bash
cf workflow archivecomment
Add a plain-text comment to a page
POST /pages/{id}/footer-comments
| Flag | Type | Required | Description |
|---|---|---|---|
--body | string | No | comment text (required) |
--id | string | No | page ID to comment on (required) |
Example:
bash
cf workflow commentcopy
Copy a page to a target parent
POST /wiki/rest/api/content/{id}/copy
| Flag | Type | Required | Description |
|---|---|---|---|
--copy-attachments | bool | No | include attachments in copy |
--copy-labels | bool | No | include labels in copy |
--copy-permissions | bool | No | include permissions in copy |
--id | string | No | page ID to copy (required) |
--no-wait | bool | No | return immediately without polling |
--target-id | string | No | target parent page ID (required) |
--timeout | string | No | timeout for async operation (e.g. 30s, 2m) |
--title | string | No | title for the copied page |
Example:
bash
cf workflow copymove
Move a page to a different parent
PUT /wiki/rest/api/content/{id}/move/append/{targetId}
| Flag | Type | Required | Description |
|---|---|---|---|
--id | string | No | page ID to move (required) |
--target-id | string | No | target parent page ID (required) |
Example:
bash
cf workflow movepublish
Publish a draft page
PUT /pages/{id}
| Flag | Type | Required | Description |
|---|---|---|---|
--id | string | No | page ID to publish (required) |
Example:
bash
cf workflow publishrestrict
View, add, or remove page restrictions
GET /wiki/rest/api/content/{id}/restriction
| Flag | Type | Required | Description |
|---|---|---|---|
--add | bool | No | add a restriction |
--group | string | No | group name |
--id | string | No | page ID to manage restrictions (required) |
--operation | string | No | restriction operation: read or update |
--remove | bool | No | remove a restriction |
--user | string | No | user account ID |
Example:
bash
cf workflow restrict