Every command below also accepts the global options.
Give an agent (a workflow) a role
studio organizations roles assign-agent <organization> <role> [options]Give an agent (a workflow) a role (OAuth login or personal API key required)
Arguments
| Argument | Required | Description |
|---|---|---|
organization | Yes | Organization ID. |
role | Yes | Role ID. |
Options
| Option | Required | Description |
|---|---|---|
--workflow-id <value> | Yes | The agent, by workflow ID. |
Create role
studio organizations roles create <organization> [options]Create Role (OAuth login or personal API key required)
Arguments
| Argument | Required | Description |
|---|---|---|
organization | Yes | Organization ID. |
Options
| Option | Required | Description |
|---|---|---|
--name <value> | Yes | Role name. |
--description <value> | No | Role description; null clears it. (--description null sends the word, not JSON null). |
--icon <value> | No | Icon name; null clears it. (--icon null sends the word, not JSON null). |
--preset <value> | No | What the role starts with: none grants nothing, member the Member role, support-agent a Chat and Helpdesk agent. Accepted values: none, member, support-agent. |
Delete role
studio organizations roles delete <organization> <role> [options]Delete Role (OAuth login or personal API key required)
Arguments
| Argument | Required | Description |
|---|---|---|
organization | Yes | Organization ID. |
role | Yes | Role ID. |
Options
| Option | Required | Description |
|---|---|---|
-y, --yes | Yes | Confirm this operation. |
Get role
studio organizations roles get <organization> <role>Get Role (OAuth login or personal API key required)
Arguments
| Argument | Required | Description |
|---|---|---|
organization | Yes | Organization ID. |
role | Yes | Role ID. |
List roles
studio organizations roles list <organization>List Roles (OAuth login or personal API key required)
Arguments
| Argument | Required | Description |
|---|---|---|
organization | Yes | Organization ID. |
Replace a role under the version organizations roles get returned
studio organizations roles replace <organization> <role> [options]Replace a role under the version organizations roles get returned (OAuth login or personal API key required)
Arguments
| Argument | Required | Description |
|---|---|---|
organization | Yes | Organization ID. |
role | Yes | Role ID. |
Options
| Option | Required | Description |
|---|---|---|
--name <value> | Yes | Role name. |
--description <value> | No | Role description; null clears it. (--description null sends the word, not JSON null). |
--icon <value> | No | Icon name; null clears it. (--icon null sends the word, not JSON null). |
--capabilities <json|@file> | Yes | What the role allows: every permission, as Get Role returns them. A replace never fills a missing permission with a default, since a default is unrestricted. (JSON, or @path / @- to read a file or stdin). |
--to-version <value> | Yes | The version this replace is based on, from Get Role. |
--assignable-to-members | No | Whether the role can be given to members; omitted, it remains unchanged. |
--no-assignable-to-members | No | Send --assignable-to-members as false. |
--assignable-to-agents | No | Whether the role can be given to agents; omitted, it remains unchanged. |
--no-assignable-to-agents | No | Send --assignable-to-agents as false. |
-y, --yes | Yes | Confirm this operation. |
List organization members
studio organizations members list <organization> [options]List Organization Members (OAuth login or personal API key required)
Arguments
| Argument | Required | Description |
|---|---|---|
organization | Yes | Organization ID. |
Options
| Option | Required | Description |
|---|---|---|
--limit <n> | No | Maximum items to return (0 for everything). Defaults to 100. |
--cursor <value> | No | Continue from nextCursor returned by a previous result. |
--search <value> | No | Every word must appear in the name or the email, ignoring case and accents. |
--role-id <value> | No | Only the members holding this role. |