curl --request PUT \
--url http://localhost/api/component-groups/{componentGroup} \
--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 PUT \
--url http://localhost/api/component-groups/{componentGroup} \
--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.
The component group ID
UpdateComponentGroupRequestData
The body is of type object
.
ComponentGroup
The response is of type object
.