StatusDashboard
Components

Update component

Partially update a component's name or description.

View Markdown

PATCH /app/components/{id}

Partially updates an existing component. All request body fields are optional — only the fields you provide are changed.

Requires the admin role.


Path parameters

ParameterTypeDescription
idstringUUID of the component to update.

Request

See API Basics for required headers.

Request body

At least one field must be provided. An empty body returns 400.

FieldTypeRequiredDescription
namestringNoNew display name. Maximum 50 characters. Must be unique within the organization (case-insensitive).
descriptionstringNoNew description. Maximum 150 characters. Pass an empty string to clear it.

Sample request

curl -X PATCH https://api.statusdashboard.com/app/components/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "Authorization: Bearer bcf847abf5c6:def456" \
  -H "Content-Type: application/json" \
  -d '{"name": "REST API", "description": "Public REST API and webhooks"}'

Sample response

Status: 200 OK

{
  "component": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "name": "REST API",
    "description": "Public REST API and webhooks",
    "currentStatus": "Operational",
    "currentStatusSnapshot": {
      "label": "Operational",
      "color": "#10b981",
      "icon": "check-circle"
    },
    "statusUpdatedAt": "2026-04-01T08:00:00.000Z",
    "createdAt": "2026-01-10T12:00:00.000Z"
  }
}

Error responses

StatusWhen
400Validation failure — empty body, malformed JSON, a field exceeds its maximum length, or the request body is not a JSON object.
403Insufficient permissions.
404No component with that ID exists in the organization.
409Another component with the same name already exists in the organization.

On this page

We use cookies

We use essential cookies to keep the site working, and optional analytics cookies to understand how it's used. Read our Privacy Policy.