API: device-groups
GET /api/groups#
List Groups
Permission policy.read (look)
Response 200
POST /api/groups#
Create Group
Permission policy.write (prepare)
Request body GroupWrite
Show 3 fields
| Field | Type | Notes |
|---|---|---|
description | string | default: "" · maxLength 2000 |
host_ids | string (uuid)[] | |
name * | string | minLength 1, maxLength 120 |
Response 201
PUT /api/groups/{group_id}#
Update Group
Permission policy.write (prepare)
Parameters
group_id * | path | string (uuid) |
Request body GroupUpdate
Show 4 fields
| Field | Type | Notes |
|---|---|---|
description | string | default: "" · maxLength 2000 |
host_ids | string (uuid)[] | |
name * | string | minLength 1, maxLength 120 |
preview_token | string | null |
Response 200
DELETE /api/groups/{group_id}#
Delete Group
Permission policy.write (prepare)
Parameters
group_id * | path | string (uuid) |
Response 204
POST /api/groups/{group_id}/preview#
Preview Group
Permission policy.write (prepare)
Parameters
group_id * | path | string (uuid) |
Request body GroupWrite
Show 3 fields
| Field | Type | Notes |
|---|---|---|
description | string | default: "" · maxLength 2000 |
host_ids | string (uuid)[] | |
name * | string | minLength 1, maxLength 120 |