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": [
"<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>"
}
]
}
}
}
}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": [
"<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.
CreateComponentRequestData
Component
Show child attributes
components Show child attributes
Show child attributes