Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
CreateComponentRequestData
The body is of type object
.
Response
Component
The response is of type object
.
curl --request POST \
--url http://localhost/api/components \
--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": [
"<any>"
],
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"group": {
"data": {
"type": "componentGroups",
"id": "<string>"
}
},
"incidents": {
"data": [
{
"type": "incidents",
"id": "<string>"
}
]
}
}
}
}
curl --request POST \
--url http://localhost/api/components \
--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": [
"<any>"
],
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<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.
CreateComponentRequestData
The body is of type object
.
Component
The response is of type object
.