Status API › Components
Update a component
Updates a component. current_status and position left out are kept;
description and group are written as sent (left out clears them).
Permission (API-key scope): status:component:write.
Authorization
bearerAuth(status:component:write)apiKeyHeader(status:component:write)
Parameters
Path parameters
componentIDstring (uuid) requiredThe component's id (a UUID).
Request body required
namestring requireddescriptionstring | nullsourcestringmonitor_idstring | nullRequired foruptime_monitor: one of your organization's Uptime monitors.current_statusComponentStatusOn create defaults tooperational; on update, left out keeps it. A monitor-linked component shows its monitor's live state instead.positioninteger | nullOn create, left out puts it last; on update, left out keeps it.groupstring | nullWritten as sent: on update, leaving it out or sending""ungroups it.
Responses
200
The component.
dataComponent requiredShow Component properties
idstring (uuid) requiredorg_idstring requiredpage_idstring (uuid) requirednamestring requireddescriptionstringsourcestring requiredmonitor_idstringThe Uptime monitor it mirrors (sourceuptime_monitor).current_statusComponentStatus requiredpositioninteger requiredgroupstringThe group (product) it appears under; absent when ungrouped.shown_statusComponentStatusIn the page's component list only, and only when a live incident or maintenance shows it differently fromcurrent_statuson the public page.shown_becausestringThe live incident's or maintenance's title that makes visitors seeshown_status.created_atstring (date-time) requiredupdated_atstring (date-time) required
successboolean required
400
A field is missing or invalid (VALIDATION_ERROR), the monitor is not your organization's (MONITOR_NOT_FOUND), or the body is not valid (INVALID_BODY).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
404
No such item, or one the caller cannot see (NOT_FOUND).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
409
A page per group is on and this would make more than 3 groups (PRODUCT_LIMIT).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
429
Too many requests (RATE_LIMITED). Wait Retry-After seconds.
Retry-AfterintegerSeconds to wait.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
Example request
curl -X PUT 'https://evohub.io/api/v1/components/a7c1e3f5-2b4d-4c6e-8f0a-1b3d5f7a9c2e' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "API",
"group": "Platform",
"source": "uptime_monitor",
"monitor_id": "mon_7a8b9c",
"description": "Public REST API (v2)"
}'