Labels and notes

Rename or recolor an event label

Replaces a label's name and color by id (path). Both are written on every call, so leaving color out resets it to amber. name follows the same rules as create, and renaming onto another of your labels' names replies 409. 404 if the label is not owned by the caller. Cookie callers must pass CSRF.

This is a write: a read-only API key is refused with 403.

patch/api/event_labels/{id}/

Request

  • Base URL: https://eyalsec.com
  • URL: https://eyalsec.com/api/event_labels/{id}/
  • Auth: one of:
    • API key in header X-API-Key
    • API key in cookie __Host-es2session

Path parameters

idinteger required

Label id.

Request body

namestring required

New name, at most 48 characters.

colorstring

New color; unknown values default to amber.

Response

Done. No body.

Changes

No recorded changes to this operation across all 1 revision of this API.