List All Groups
This endpoint allows you to query all groups with accounts that you have access to.
OK
Unauthorized.
Unauthorized. The requesting user does not have enough privilege.
- 200
- 401
- 403
{- "data": [
- {
- "type": "groups",
- "id": "uUmE2v0ns",
- "attributes": {
- "name": "test-group",
- "tags": [
- "dev-environment"
], - "created-date": 1587441074460,
- "last-modified-date": 1590647034893
}, - "relationships": {
- "organisation": {
- "data": {
- "type": "organisations",
- "id": "B1nHYYpwx"
}
}, - "accounts": {
- "data": [
- {
- "type": "accounts",
- "id": "16gZQXGZf"
}
]
}
}
}
]
}
Create Group
This endpoint allows an ADMIN user to create a new group.
Request Body schema: application/vnd.api+json
required | object |
OK
Unauthorized.
Unauthorized. The requesting user does not have enough privilege.
Unprocessable Entity. It happens when there is a validation error.
- Payload
{- "data": {
- "attributes": {
- "name": "my-group",
- "tags": [
- "dev"
]
}
}
}
- 200
- 401
- 403
- 422
{- "data": {
- "type": "groups",
- "id": "uUmE2v0ns",
- "attributes": {
- "name": "test-group",
- "tags": [
- "dev-environment"
], - "created-date": 1587441074460,
- "last-modified-date": 1590647034893
}, - "relationships": {
- "organisation": {
- "data": {
- "type": "organisations",
- "id": "B1nHYYpwx"
}
}, - "accounts": {
- "data": [
- {
- "type": "accounts",
- "id": "16gZQXGZf"
}
]
}
}
}
}
Get Group Details
This endpoint allows you to get the details of the specified group with accounts that you have access to.
OK
Unauthorized.
Unauthorized. The requesting user does not have enough privilege.
- 200
- 401
- 403
{- "data": [
- {
- "type": "groups",
- "id": "uUmE2v0ns",
- "attributes": {
- "name": "test-group",
- "tags": [
- "dev-environment"
], - "created-date": 1587441074460,
- "last-modified-date": 1590647034893
}, - "relationships": {
- "organisation": {
- "data": {
- "type": "organisations",
- "id": "B1nHYYpwx"
}
}, - "accounts": {
- "data": [
- {
- "type": "accounts",
- "id": "16gZQXGZf"
}
]
}
}
}
]
}
Delete Group
A DELETE request to this endpoint allows an ADMIN to delete the specified group.
OK
Unauthorized.
Unauthorized. The requesting user does not have enough privilege.
- 200
- 401
- 403
{- "meta": {
- "status": "deleted"
}
}
Update Group
This endpoint allows an ADMIN user to update a new group.
OK
Unauthorized.
Unauthorized. The requesting user does not have enough privilege.
Unprocessable Entity. It happens when there is a validation error.
- Payload
{- "data": {
- "attributes": {
- "name": "my-group",
- "tags": [
- "dev"
]
}
}
}
- 200
- 401
- 403
- 422
{- "data": {
- "type": "groups",
- "id": "uUmE2v0ns",
- "attributes": {
- "name": "test-group",
- "tags": [
- "dev-environment"
], - "created-date": 1587441074460,
- "last-modified-date": 1590647034893
}, - "relationships": {
- "organisation": {
- "data": {
- "type": "organisations",
- "id": "B1nHYYpwx"
}
}, - "accounts": {
- "data": [
- {
- "type": "accounts",
- "id": "16gZQXGZf"
}
]
}
}
}
}