Component Groups
Create Component Group
API Documentation
Components
Component Groups
Incident Updates
Incident Templates
MetricPoint
Component Groups
Create Component Group
POST
/
component-groups
curl --request POST \
--url http://localhost/api/component-groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"order": 1,
"visible": true,
"components": [
1
]
}'
{
"data": {
"id": "<string>",
"type": "componentGroups",
"attributes": {
"id": "<string>",
"name": "<string>",
"order": "<string>",
"visible": "<string>",
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"components": {
"data": [
{
"id": "<string>",
"type": "components",
"attributes": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"link": "<string>",
"order": "<string>",
"status": {
"human": "<string>",
"value": "<string>"
},
"enabled": "<string>",
"meta": "<string>",
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"group": {
"data": {}
},
"incidents": {
"data": [
{
"id": "<string>",
"type": "incidents",
"attributes": {
"id": "<string>",
"guid": "<string>",
"name": "<string>",
"message": "<string>",
"component_id": "<string>",
"visible": "<string>",
"stickied": "<string>",
"notifications": "<string>",
"status": {
"human": "<string>",
"value": "<string>"
},
"occurred": {
"human": "<string>",
"string": "<string>"
},
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"components": {
"data": [
{}
]
},
"updates": {
"data": [
{
"id": "<string>",
"type": "updates",
"attributes": {
"id": "<string>",
"updateable_id": "<string>",
"updateable_type": "<string>",
"message": "<string>",
"status": {
"human": "<string>",
"value": "<string>"
},
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
}
}
]
},
"user": {
"data": {
"id": "<string>",
"type": "<string>",
"attributes": {
"id": "<string>"
}
}
}
}
}
]
}
}
}
]
}
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
`CreateComponentGroupRequestData`
Maximum length:
255
Required range:
x >= 0
Response
200
application/json
`ComponentGroup`
Available options:
componentGroups
curl --request POST \
--url http://localhost/api/component-groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"order": 1,
"visible": true,
"components": [
1
]
}'
{
"data": {
"id": "<string>",
"type": "componentGroups",
"attributes": {
"id": "<string>",
"name": "<string>",
"order": "<string>",
"visible": "<string>",
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"components": {
"data": [
{
"id": "<string>",
"type": "components",
"attributes": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"link": "<string>",
"order": "<string>",
"status": {
"human": "<string>",
"value": "<string>"
},
"enabled": "<string>",
"meta": "<string>",
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"group": {
"data": {}
},
"incidents": {
"data": [
{
"id": "<string>",
"type": "incidents",
"attributes": {
"id": "<string>",
"guid": "<string>",
"name": "<string>",
"message": "<string>",
"component_id": "<string>",
"visible": "<string>",
"stickied": "<string>",
"notifications": "<string>",
"status": {
"human": "<string>",
"value": "<string>"
},
"occurred": {
"human": "<string>",
"string": "<string>"
},
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"components": {
"data": [
{}
]
},
"updates": {
"data": [
{
"id": "<string>",
"type": "updates",
"attributes": {
"id": "<string>",
"updateable_id": "<string>",
"updateable_type": "<string>",
"message": "<string>",
"status": {
"human": "<string>",
"value": "<string>"
},
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
}
}
]
},
"user": {
"data": {
"id": "<string>",
"type": "<string>",
"attributes": {
"id": "<string>"
}
}
}
}
}
]
}
}
}
]
}
}
}
}