Tags
Update a tag name.
Changed onUpdates the name of an existing tag. User and document assignments are preserved.
Tags are called labels in the API, so paths and fields use label (for example labelId and labels).
put/api/v1/projects/{projectId}/labels/{labelId}
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.
labelIdinteger required
The unique identifier of the tag to operate on.
Request body
Example request
{
"name": "Pricing"
}Response
Rename a tag within a project
Example response
{
"status": "success",
"data": {
"id": 1,
"name": "Pricing"
}
}Changes
- info
endpoint added
- info