Documents
Update document
Changed onUse the Documents v2 API instead. </Warning>
Update the name, description, and/or identifier of a document. Note: At least one of name, description, or identifier must be provided or the API will return a Bad Request error.
Renaming a document follows the app's draft/publish workflow:
| Document Type | Behavior |
|---|---|
| Draft | Renamed directly |
| Published (no existing draft) | Creates draft > Renames draft > Publishes draft |
| Published (existing draft, clearExistingDraft: true) | Discards existing draft > Creates new draft > Renames > Publishes |
| Published (existing draft, clearExistingDraft not set) | Returns 409 Conflict |
patch/v1/documents/{documentId}
Request
- Base URLhttps://blobsrus.omniapp.co/api
- URLhttps://blobsrus.omniapp.co/api/v1/documents/{documentId}
- AuthHTTP bearer
Path parameters
documentIdstring required
Document identifier
Request body
Example request
{
"identifier": "sales-dashboard-archived"
}Response
Document renamed successfully
Changes
- info
added the non-success response with the status
- info