Commands are actions that can be executed on one or more Coworker records. Use this endpoint to discover which commands are available, then execute them via the Run command endpoint.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header.
The authenticated user must be a full unrestricted administrator or have the Coworker-List role.
Query Parameters
If provided, only commands available for this specific Coworker will be returned.
Code Examples
curl -X GET \
"https://spaces.nexudus.com/api/spaces/coworkers/commands" \
-H "Authorization: Bearer YOUR_TOKEN"
Response
200
Returns an array of available commands.
Unique identifier for the command. Pass this to the Run command endpoint.
Human-readable name of the command.
AppliesOnlyToMultipleEntities
Whether the command can only be run on multiple records at once.
Whether the command can only be run on a single record.
Whether the command requires record Ids to execute.
Display order for the command.
List of parameters required by this command, each containing Name and Type.
[
{
"Key": "COMMAND_KEY_1",
"Name": "Command name",
"AppliesOnlyToMultipleEntities": false,
"DisplayInDropdown": false,
"DisplayInDropdownV2": true,
"AppliesOnlyToOneEntity": true,
"AppliesOnlyToTwoEntities": false,
"DisplayInGrid": false,
"Icon": "/Content/Themes/Admin/Images/Icons/Fugue/gear.png",
"NeedsEntitiesToRun": true,
"Order": 8,
"RequiresParameters": [
{
"Name": "Parameter name",
"Type": "parameterType"
}
]
}
]