Client
For the purposes of the API, "client" refers to an OAuth2 client/application. This API endpoint is only available to group owners. The assignable roles can be obtained using the Role endpoint.
List all clients
Get the list of all client that belong to the current user's group.
API Request
Request parameters
Parameter | Type | Required | Description |
search | string | no | The text used to search for a client. |
orderBy | string | no | The field to order clients by. Possible values: name . Default: name |
sort | string | no | The order to sort clients in. Possible values: asc , desc . Default: asc |
Example response
Create client
API Request
Request parameters
Parameter | Type | Required | Description |
name | string | yes | The client's name |
enabled | boolean | no | Whether the client will be enabled or not. Default: true |
roles | array | no | The roles to assign to the client. |
Example request
Example response
Get single client
API Request
Request parameters
Parameter | Type | Required | Description |
id | string | yes | The ID of the client to retrieve. |
Example response
Update client
API Request
Request parameters
Parameter | Type | Required | Description |
name | string | no | The client's new name |
enabled | boolean | no | Whether the client will be enabled or not |
roles | array | no | The new roles to assign to the client |
Example request
Example response
Generate new client secret
Generate a new client secret for an existing client.
API Request
Request parameters
Parameter | Type | Required | Description |
id | string | yes | The ID of the client that needs a new secret generated. |
Example response
Delete client
API Request
Request parameters
Parameter | Type | Required | Description |
id | string | yes | The ID of the client to delete. |
Response status codes
Code | Meaning |
204 No Content | The client was deleted successfully |
404 Not Found | A client with the provided ID could not be found |