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": 123,
"name": "<string>",
"order": 123,
"visible": 0,
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"components": {
"data": [
{
"type": "components",
"id": "<string>"
}
]
}
}
}
}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": 123,
"name": "<string>",
"order": 123,
"visible": 0,
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"components": {
"data": [
{
"type": "components",
"id": "<string>"
}
]
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
CreateComponentGroupRequestData
ComponentGroup
Show child attributes
componentGroups Show child attributes
0, 1, 2 Show child attributes