Get resource types
GET/permissionResourceTypes
Base URL: https://api.tinkermode.com
Get a list of resource types associated with a user (by using the userId parameter),
a service account (by using the serviceAccountId parameter),
or an access control group (by using the accessControlGroupId parameter).
One of userId, serviceAccountId, or accessControlGroupId must be specified.
Authentication
Send an Authorization header of the form ModeCloud <AUTH_CODE>.
Must contain a user, service account, or project API key with "Admin" privileges.
Query parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
accessControlGroupId | integer | No | Return permissions of the access control group. | |
projectId | integer | Yes | Return permissions of the specified project. | |
serviceAccountId | integer | No | Return permissions of the service account. Requires a project super admin or an admin project API key. | |
userId | integer | No | Return permissions of the user. |
Responses
200 Successful retrieval of list of resource types.
Content type: application/json
Resource type
An array of string:
Response example
[
"accessControlGroup",
"alertRule",
"dataFilter",
"entity",
"entityClass",
"home",
"projectAlert",
"scheduledReportConfiguration",
"scheduledReportExecution",
"user"
]401 Authorization is required to access this resource.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
403 Request failed because of denied permission.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
429 Request failed because of rate limit.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
500 An unexpected error has occurred.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
503 The service is temporarily unavailable.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |