דלג לתוכן הראשי
PATCH
/
labels
/
{labelId}
Update Existing Label
curl --request PATCH \
  --url https://{projectID}.texterchat.com/server/api/v2/labels/{labelId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Message failed to send",
  "color": "#a769ff"
}
'
"OK"

הרשאות

Authorization
string
header
נדרש

API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.

פרמטרי נתיב

labelId
string
נדרש

The unique identifier of the label. You can retrieve all existing labels using the List All Labels endpoint

גוף

application/json
name
string

New label name (1-100 characters)

Required string length: 1 - 100
color
string

New label color in full hex format

תגובה

Label updated. Body is the plain text OK