curl --request POST \
--url https://staging.api.us.aptlydone.com/settings/v1/group-types \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"tenantId": "c1131655-377c-4259-b6eb-e980b34d6377",
"groupTypeName": "Department"
}'
{
"statusCode": 200,
"timestamp": "2025-06-24T08:51:42.214Z",
"message": "Success",
"data": {
"id": "8fbc5342-8e74-46ff-afa0-f78390dc216c",
"tenantId": "437218eb-07f2-457a-8628-de3936de2f68",
"groupTypeName": "Department",
"shouldAllowEnableDisable": true,
"isDefault": false,
"disableOption": "NA",
"isDeleted": false,
"status": "ACTIVE",
"createdBy": null,
"createdOn": "2024-12-18T09:50:43.338Z",
"updatedOn": "2024-12-18T09:50:43.338Z",
"updatedBy": null
}
}
curl --request POST \
--url https://staging.api.us.aptlydone.com/settings/v1/group-types \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"tenantId": "c1131655-377c-4259-b6eb-e980b34d6377",
"groupTypeName": "Department"
}'
{
"statusCode": 200,
"timestamp": "2025-06-24T08:51:42.214Z",
"message": "Success",
"data": {
"id": "8fbc5342-8e74-46ff-afa0-f78390dc216c",
"tenantId": "437218eb-07f2-457a-8628-de3936de2f68",
"groupTypeName": "Department",
"shouldAllowEnableDisable": true,
"isDefault": false,
"disableOption": "NA",
"isDeleted": false,
"status": "ACTIVE",
"createdBy": null,
"createdOn": "2024-12-18T09:50:43.338Z",
"updatedOn": "2024-12-18T09:50:43.338Z",
"updatedBy": null
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Tenant group type created successfully
The response is of type object
.