Create a new group for managing devices

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Creation of group

Endpoints

Request URL

https://{server-hostname}:8383/api/v1/mdm/groups

Scope

MDMDeviceMgmt.CREATECopied!

Header

Authorization: d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

Content-TypestringMandatory
application/jsonapplication/jsonCopied!
AcceptstringMandatory
application/jsonapplication/jsonCopied!

- Request Body

application/json
JSON Object
Hide Sub-Attributes
namestringMandatory

Name of the group. Must be unique within the customer

group_typeintegerMandatory

Type of group: 6 — Device Group, 7 — User Group/AD Group

domainstringOptional

Domain in which the group exists (applicable if Active Directory is synced)

descriptionstringOptional

Description of the group

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request POST \
  --url https://appdomain/api/v1/mdm/groups \
  --header 'Accept: application/json' \
  --header 'Authorization:  d92d4xxxxxxxxxxxxx15f52' \
  --header 'Content-Type: application/json' \
  --data '{"domain":"ZYLKERCORP","name":"MDM","description":"Group for MDM","group_type":1}'

Sample Request Body

Create a group with domain and description

Copied!
  {
    "domain": "ZYLKERCORP",
    "name": "MDM",
    "description": "Group for MDM",
    "group_type": 1
  }
                
Show full

Create a group with only required fields

Copied!
  {
    "domain": "",
    "name": "Sales Devices",
    "description": "",
    "group_type": 1
  }
                
Show full

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Hide Sub-Attributes
group_idlong

Unique identifier for the newly created group

namestring

Name of the created group

group_typeinteger

Type of group

domainstring

Domain in which the group exists

descriptionstring

Description of the group

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

Group successfully created

Copied!
  {
    "group_id": 99731238129,
    "domain": "ZYLKERCORP",
    "name": "MDM",
    "description": "Group for MDM",
    "group_type": 1
  }
                
Show full

Duration: 1 minute | Threshold: 300 | Lock period: 5 minutes

Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.