GrantAllAgent
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/devices/{device_registration_id}/grants/all_agents |
create |
Owner-scoped product grant metadata; execution remains unavailable |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
created, err := client.GrantAllAgent(nil).Create(map[string]any{"device_id": "example", "organization_id": "example", "enabled": true}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local created, err = client:GrantAllAgent():create({ device_id = "example", organization_id = "example", enabled = true })
PHP
Construct client as shown in the PHP setup, then call the operations:
$created = $client->GrantAllAgent()->create(["device_id" => "example", "organization_id" => "example", "enabled" => true]);
Python
Construct client as shown in the Python setup, then call the operations:
created = client.GrantAllAgent().create({ "device_id": "example", "organization_id": "example", "enabled": True })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
created = client.GrantAllAgent.create({ "device_id" => "example", "organization_id" => "example", "enabled" => true })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const created = await client.GrantAllAgent().create({ device_id: "example", organization_id: "example", enabled: true })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
all_agents_access |
boolean |
Yes | All Agents Access |
enabled |
boolean |
Yes | Enabled |
execution_available |
boolean |
Yes | Execution Available |
create
POST /api/v1/organizations/{organization_id}/devices/{device_registration_id}/grants/all_agents
Operation ID: deviceGrantsAllAgents.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
device_registration_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
enabled |
boolean |
Yes |
Responses
200: Owner-scoped product grant metadata; execution remains unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
all_agents_access |
boolean |
Yes | |
execution_available |
boolean |
Yes |
400: Invalid, unavailable or unauthorized device grant request
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
401: Invalid, unavailable or unauthorized device grant request
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
403: Invalid, unavailable or unauthorized device grant request
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
404: Invalid, unavailable or unauthorized device grant request
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
409: Invalid, unavailable or unauthorized device grant request
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
422: Invalid, unavailable or unauthorized device grant request
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
503: Invalid, unavailable or unauthorized device grant request
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |