Sazabi
APIComponents

Register a component

POST
/components

Register a status page component in a project, or refresh an existing active component with the same name.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/components" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "component": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",    "name": "string",    "description": "string",    "origin": "user_declared",    "lifecycle": "active",    "observationState": "observed",    "registryRevision": 0,    "canonicalComponentId": "db6a73a5-21af-4453-8aa4-72d41f15a785",    "mergedIntoComponentId": "a54e76d3-7757-4ae7-813e-d2ee19ad938e",    "currentStatus": "operational",    "firstSeenAt": "2019-08-24T14:15:22Z",    "lastSeenAt": "2019-08-24T14:15:22Z",    "deletedAt": "2019-08-24T14:15:22Z",    "inactiveAt": "2019-08-24T14:15:22Z",    "inactiveReason": "string",    "legacyStateUnknown": true  }}