Skip to main content

List Group

Get Group

curl --location 'https://{{base_url}}/v3/group' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{token}}'

Response trả về:

{
"data": [
{
"group_uuid": "446401ea-bb08-4a71-9fd8-22dfb15072e5",
"domain_uuid": "c275b950-9885-4775-b1bd-09fc865afa48",
"group_name": "Group01",
"group_description": "",
"department_uuid": ""
}
],
"limit": 10,
"offset": 0,
"total": 1
}

Error response:

{
"error": "group is not found"
}

HTTP Request

GET https://{{base_url}}/v3/group

Query Parameters

ParameterDescriptionExample
limitSố lượng record trả về10
offsetVị trí bắt đầu khi query0

Get Group By ID

curl --location 'https://{{base_url}}/v3/group/446401ea-bb08-4a71-9fd8-22dfb15072e5' \
--header 'Authorization: Bearer {{token}}' \
--data ''

Response trả về:

{
"group_uuid": "446401ea-bb08-4a71-9fd8-22dfb15072e5",
"domain_uuid": "c275b950-9885-4775-b1bd-09fc865afa48",
"group_name": "Group01",
"group_description": "",
"group_priority": 0,
"users": null,
"campaigns": null,
"department_uuid": "",
"department_name": "",
"kpi": null
}

API này dùng để lấy thông tin chi tiết của một nhóm theo uuid truyền vào.

HTTP Request

GET https://{{base_url}}/v3/group/{{group_uuid}}

Query Parameters

ParameterDescription
group_uuidUUID của nhóm