Skip to main content

Create Group

This API creates a new group within the tenant. Groups are used to organize users and manage their permissions collectively.

Endpoint Details

URL/v1/auth/groups
MethodPOST
AuthorizationBearer Token

Request Headers

HeaderTypeDescription
Content-TypeStringMust be application/json

Request Body

Use the following format to make a request:

JSON Request
{
"name": "grup jeje 2",
"description": "deskripsi grup"
}

Parameters

ParameterTypeDescription
nameStringName of the group
descriptionStringOptional description of the group

Response

Here is an example response after the request has been successfully processed:

Response
{
"group": {
"id": "8c9258f8-14c9-42c5-978b-f7a652c13444",
"tenant_id": "5ebde17c-01a1-4394-977b-9e611250cf5d",
"name": "Grup Jeje 2",
"description": "deskripsi grup",
"created_by": "0a937c60-0ed4-4d06-870a-2e284b54287d",
"updated_by": "0a937c60-0ed4-4d06-870a-2e284b54287d",
"created_at": 1784085688,
"updated_at": 1784085688
}
}

Field Descriptions

FieldTypeDescription
idUUIDUnique identifier of the group
tenant_idUUIDIdentifier of the tenant that owns the group
nameStringName of the group
descriptionStringDescription of the group
created_byUUIDIdentifier of the user who created the group
updated_byUUIDIdentifier of the user who last updated the group
created_atIntegerGroup creation timestamp in Unix format
updated_atIntegerLast update timestamp in Unix format

info
  • A valid Bearer Token is required to access this endpoint.
  • Unix timestamp fields can be converted to a human-readable date and time format as needed.