Documents
Unpublish a document
Changed onUnpublishing a document moves it back to a draft status and out of the collection.
post/documents.unpublish
Request
- Base URLhttps://app.getoutline.com/api
- URLhttps://app.getoutline.com/api/documents.unpublish
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://app.getoutline.com/oauth/authorizeToken URL: https://app.getoutline.com/oauth/token scopes: read, write
Request body
Example request
{
"id": "hDYep1TPAM"
}Response
OK
Example response
{
"data": {
"title": "Welcome to Acme Inc",
"icon": "🎉",
"text": "…",
"urlId": "hDYep1TPAM",
"createdBy": {
"name": "Jane Doe"
},
"updatedBy": {
"name": "Jane Doe"
},
"deletedBy": {
"name": "Jane Doe"
}
},
"policies": [
{
"abilities": {
"read": true,
"update": true,
"delete": false
}
}
]
}Changes
- info
added the optional property
/to the response with the status - info
response property
data/urldeprecated
- info
- info
added the optional property
/to the response with the status
- info