Path parameters
-
id
string Required
Body
Required
-
name
string Required Minimum length is
1
, maximum length is50
. -
bgColor
string Required Maximum length is
20
. -
resourceType
string Required Values are
user
orlocation
.
PUT
/api/labels/{id}
curl \
-X PUT https://ppammedellin.com/api/labels/{id} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string","bgColor":"string","resourceType":"user"}'
Request example
{
"name": "string",
"bgColor": "string",
"resourceType": "user"
}
Response examples (200)
{
"name": "string",
"bgColor": "string",
"id": "string",
"resourceType": "string",
"createdAt": "2024-05-04T09:42:00+00:00"
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}