Lists the Roles that have been created for this Hub.
Requires the hubs-roles-manage
capability.
Returns a list of Hub Roles.
General error response from the platform
{- "data": [
- {
- "id": "string",
- "name": "string",
- "root": true,
- "default": "string",
- "rank": 0,
- "identifier": "string",
- "creator": {
- "id": "651586fca6078e98982dbd90",
- "type": "account"
}, - "capabilities": {
- "all": true,
- "specific": [
- "api-keys-manage"
]
}, - "extra": {
- "property1": "string",
- "property2": "string"
}, - "hub_id": "651586fca6078e98982dbd90",
- "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z"
}, - "meta": {
- "counts": {
- "members": 0,
- "api_keys": 0
}
}
}
]
}
Creates a custom Role for a Hub.
Requires the hubs-roles-manage
capability.
Parameters for creating a new Hub Role.
Returns a Hub Role.
General error response from the platform
{- "name": "string",
- "identifier": "string",
- "capabilities": {
- "all": true,
- "specific": [
- "api-keys-manage"
]
}, - "rank": 0,
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
{- "data": {
- "id": "string",
- "name": "string",
- "root": true,
- "default": "string",
- "rank": 0,
- "identifier": "string",
- "creator": {
- "id": "651586fca6078e98982dbd90",
- "type": "account"
}, - "capabilities": {
- "all": true,
- "specific": [
- "api-keys-manage"
]
}, - "extra": {
- "property1": "string",
- "property2": "string"
}, - "hub_id": "651586fca6078e98982dbd90",
- "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z"
}, - "meta": {
- "counts": {
- "members": 0,
- "api_keys": 0
}
}
}
}
Retrieves the specified Role.
Requries the hubs-roles-manage
capability.
Returns a Role.
General error response from the platform
{- "data": {
- "id": "string",
- "name": "string",
- "root": true,
- "default": "string",
- "rank": 0,
- "identifier": "string",
- "creator": {
- "id": "651586fca6078e98982dbd90",
- "type": "account"
}, - "capabilities": {
- "all": true,
- "specific": [
- "api-keys-manage"
]
}, - "extra": {
- "property1": "string",
- "property2": "string"
}, - "hub_id": "651586fca6078e98982dbd90",
- "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z"
}, - "meta": {
- "counts": {
- "members": 0,
- "api_keys": 0
}
}
}
}
Updates various properties of a specific Role.
Requires the hubs-roles-manage
capability.
Returns the updated Hub Role.
General error response from the platform
{- "name": "string",
- "identifier": "string",
- "capabilities": {
- "all": true,
- "specific": [
- "api-keys-manage"
]
}, - "rank": 0,
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
{- "data": {
- "id": "string",
- "name": "string",
- "root": true,
- "default": "string",
- "rank": 0,
- "identifier": "string",
- "creator": {
- "id": "651586fca6078e98982dbd90",
- "type": "account"
}, - "capabilities": {
- "all": true,
- "specific": [
- "api-keys-manage"
]
}, - "extra": {
- "property1": "string",
- "property2": "string"
}, - "hub_id": "651586fca6078e98982dbd90",
- "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}, - "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z"
}, - "meta": {
- "counts": {
- "members": 0,
- "api_keys": 0
}
}
}
}
Marks a Role as 'deleted'.
Requires the 'hubs-roles-manage' capability.
Returns a Job Descriptor.
General error response from the platform
{- "data": {
- "action": "string",
- "job": {
- "id": "string",
- "accepted": true,
- "queue": "string",
- "schedule": "2021-01-30T08:30:00Z",
- "parallel": {
- "sub_queue": "string",
- "tasks": true
}, - "tasks": [
- {
- "caption": "string",
- "header": "string",
- "steps": [
- {
- "caption": "string",
- "description": "string",
- "started": "2021-01-30T08:30:00Z",
- "completed": "2021-01-30T08:30:00Z"
}
], - "input": {
- "property1": null,
- "property2": null
}
}
]
}
}
}