Create A Command
This endpoint allows you to create a new command.
In an OU provider context with enterprise command sharing enabled, create has two outcomes. commandTarget: enterprise (Enterprise Admin in Enterprise or View All context) stores the canonical command in the primary organization with managedBy=enterprise and grants every current child org. commandTarget: organization with targetOrganizationId creates a local command in that org (managedBy=organization, no grants). A pinned child x-org-id always creates a local command. Org Admin cannot create Enterprise commands (403). Child-console create is unchanged. Partial Directory grant failures are returned as grantPropagationErrors on the response.
NOTE: the system property in the command is not used. Use a POST to /api/v2/commands/{id}/associations to bind a command to a system.
Sample Request
curl -X POST https://console.jumpcloud.com/api/commands/ \
-H 'Accept: application/json' \
-H 'Content-Type: application/json'
-H 'x-api-key: {API_KEY}'
-d '{"name":"Test API Command", "command":"String", "user":"{UserID}", "schedule":"", "timeout":"100"}'
Request
- Base URLhttps://console.jumpcloud.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.