Create an access control group

POST/accessControlGroups

Base URL: https://api.tinkermode.com

Create an access control group. If the request is made by a user, the user must have permission to create access control group.

Authentication

Send an Authorization header of the form ModeCloud <AUTH_CODE>.

Must contain a user, service account, or project API key with "Admin" privileges.

Request body

Content type: application/json

PropertyTypeRequiredConstraintsDescription
descriptionstringYesThe description of the group.
namestringYesThe display name of the group.
projectIdstringYesThe project that this access control group belongs to.

Responses

201 Successfully created a new access control group.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
descriptionstringYesDescription of group.
idintegerYesread-only (server-generated)Unique ID assigned at time of creation.
namestringYesDisplay name of group.
projectIdintegerYesread-only (server-generated)Project that this access control group belongs to.

Response example

{
  "description": "A group to access all devices in the project",
  "id": 1,
  "name": "Customer Support",
  "projectId": 10
}

401 Authorization is required to access this resource.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

403 Request failed because of invalid data or denied permission.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

429 Request failed because of rate limit.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

500 An unexpected error has occurred.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

503 The service is temporarily unavailable.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.