GroupsV1

Create group

Group type can be users or locks.

post/groups/v1

Request

  • Base URL: https://api.danalock.com
  • URL: https://api.danalock.com/groups/v1
  • Auth: OAuth 2 (authorization code, authorization URL /oauth2/authorize, token URL /oauth2/token)

Headers

X-Assume-Userstring

Assume the identity of the user in another domain

Request body

typestring required
namestring required

Example request

{
  "type": "users",
  "name": "My group"
}

Response

idstring
type'users' | 'locks'
namestring

Example response

{
  "id": "group-c42c6c262",
  "name": "my user's group"
}

Changes

No recorded changes to this operation across all 1 revision of this API.