Mindset v3 / Deploy in your app / Labels
View as MarkdownUpdate a label by UID
Mindset v3 REST API reference: Labels.
PATCH /api/v1/appuid/{appUid}/labels/uid/{uid}
Base URL
Requests go to your region's API host, for example https://a.api.mindset.ai. Hosts: https://a.api.mindset.ai, https://b.api.mindset.ai, https://c.api.mindset.ai, https://d.api.mindset.ai.
Authorization
x-api-keystringheaderrequired
Your API key.
Path parameters
appUidstringpathrequired
Your application's uid
uidstringpathrequired
Unique ID of the label
Request body
Content type: application/json.
namestringbody
Name of the label
showInDiscoverybooleanbody
Is this label visible to end users?
json
{
"name": "string",
"showInDiscovery": true
}Responses
200
Successful update
json
{
"uid": "string",
"name": "string",
"externalId": "string",
"showInDiscovery": true,
"createdAt": "string"
}404
Label not found
422
Unprocessable Entity
Example request
bash
curl -X PATCH "https://a.api.mindset.ai/api/v1/appuid/{appUid}/labels/uid/{uid}" \
-H "x-api-key: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{"name":"string","showInDiscovery":true}'