Skip to main content
PUT
/
workspaces
/
{workspace}
/
labels
/
{label}
Update Label
curl --request PUT \
  --url https://lancepilot.com/api/v3/workspaces/{workspace}/labels/{label} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Very Important",
  "color": "#00AA00"
}
'
{
  "status": 200,
  "message": "Resource updated successfully.",
  "data": {}
}

JSON Request Example

{
  "name": "Very Important",
  "color": "#00AA00"
}

📝 Field Requirements

FieldTypeRequiredNotes
namestring (max 255)YesNew label name (must be unique within the workspace).
colorstring (max 7)NoHex color code (e.g., #00AA00). Optional.

💡 Notes

  • The label name must remain unique within the workspace
  • You can update just the name, just the color, or both fields
  • Updating a label does not affect contacts already tagged with this label

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace
string<uuid>
required

ID of the workspace.

label
integer
required

ID of the label.

Body

application/json
name
string
required

New label name (unique per workspace).

Maximum string length: 255
color
string | null

Hex color code (e.g., #FF5733). Optional.

Maximum string length: 7
Example:

"#00AA00"

Response

status
integer
required
Example:

200

message
string
required
Example:

"Resource updated successfully."

data
object
required

Updated resource data.