curl --request POST \
--url http://localhost/api/api/groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"users": [
123
],
"permissions": [
123
]
}
'{
"id": 123,
"name": "<string>",
"users": [
123
],
"permissions": [
123
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}curl --request POST \
--url http://localhost/api/api/groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"users": [
123
],
"permissions": [
123
]
}
'{
"id": 123,
"name": "<string>",
"users": [
123
],
"permissions": [
123
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}JWT token obtained from AWS Cognito or custom authentication service
Group created successfully