Pages
Replace document labels.
Changed onAssigns labels to a document for access control. The provided label IDs replace any existing labels on the document. To remove all labels (making the document accessible to everyone), send an empty array.
Notes: Maximum 50 labels per document.
Warning: This replaces all existing labels. Labels not included in the request will be removed from the document.
put/api/v1/projects/{projectId}/pages/{pageId}/labels
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdinteger required
The unique identifier of the agent.
pageIdinteger required
The unique identifier of the page/document.
Request body
Example request
{
"label_ids": [
1,
2,
3
]
}Response
Replace labels attached to a page
Example response
{
"status": "success",
"data": [
{
"id": 1,
"name": "Pricing"
}
]
}Changes
- info
endpoint added
- info