cURL
curl --request PUT \ --url http://localhost/api/components/{component} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "description": "<string>", "status": 1, "link": "<string>", "order": 1, "enabled": true, "component_group_id": 1 } '
{ "data": { "id": "<string>", "type": "components", "attributes": { "id": 123, "name": "<string>", "description": "<string>", "link": "<string>", "order": 123, "status": { "human": "<string>", "value": "<string>" }, "enabled": true, "meta": [ "<unknown>" ], "created": { "human": "<string>", "string": "<string>" }, "updated": { "human": "<string>", "string": "<string>" }, "pivot": { "component_status": { "human": "<string>", "value": "<string>" } } }, "relationships": { "group": { "data": { "type": "componentGroups", "id": "<string>" } }, "incidents": { "data": [ { "type": "incidents", "id": "<string>" } ] } } } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The component ID
UpdateComponentRequestData
255
1
2
3
4
5
6
x >= 0
Component
Show child attributes