Need help? Get answers from the docs with Omni's in-app AI! Log in to your Omni instance and open the Omni Agent in the sidebar.
curl --request PATCH \
--url https://{instance}.omniapp.co/api/v1/documents/{documentId}/labels \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"add": [
"production",
"reviewed"
]
}
'{
"labels": [
"label-one",
"label-two",
"new-label"
]
}curl --request PATCH \
--url https://{instance}.omniapp.co/api/v1/documents/{documentId}/labels \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"add": [
"production",
"reviewed"
]
}
'{
"labels": [
"label-one",
"label-two",
"new-label"
]
}Add and/or remove multiple labels from a document in a single atomic operation. When using this endpoint, keep in mind that:Documentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
add or remove must contain at least one label.add and remove in the same request.Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
The document identifier (UUID)
Requires an Organization API key. Optional user ID that attributes the action to the specified user.
Labels updated successfully
The updated list of labels on the document
Was this page helpful?