PUT
/
component-groups
/
{componentGroup}
Update Component Group
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>"
          }
        ]
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

componentGroup
integer
required

The component group ID

Body

application/json

UpdateComponentGroupRequestData

The body is of type object.

Response

200
application/vnd.api+json

ComponentGroup

The response is of type object.