Skip to Content
REST APIEnvironment Tool Grants API

Environment Tool Grants API

List active tool grants in an environment

PathMethodProtected
/v1/envs/{environment_id}/toolsGETYes

Example Response JSON

{ "values": [ { "grant": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563", "toolReleaseId": "4627e620-f60c-4beb-9b02-d50968f37183", "protected": true, "automatic": true, "followCoordinates": true, "lifecycle": "active", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "stateChangedAt": "2019-08-24T14:15:22Z", "stateChangedBy": "2b961163-2f23-4eaa-a259-05736f8f6815" }, "release": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "version": "string", "definition": { "version": "string", "requires_filesystem": true, "commands": { "nodes": [ { "name": "string", "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "globals": { "options": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "shape": { "kind": "scalar", "value": { "kind": "ref", "value": { "id": "string", "metadata": { "aliases": [], "examples": [] } } } }, "default": { "kind": "bool", "value": true }, "required": true, "env_var": "string" } ], "flags": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "shape": { "kind": "bool-flag", "value": { "default": true, "negatable": true } }, "env_var": "string" } ] }, "subcommands": [ 0 ], "body": { "positionals": { "fixed": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ {} ] }, "value_name": "string", "type_": { "kind": "ref", "value": { "id": "string", "metadata": { "aliases": [], "examples": [] } } }, "default": { "kind": "bool", "value": true }, "required": true, "accepts_stdio": true } ], "tail": { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "item_type": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ null ], "examples": [ null ], "deprecated": "string", "role": {} } } }, "min": 0, "max": 0, "separator": "string", "verbatim": true, "accepts_stdio": true } }, "options": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "shape": { "kind": "scalar", "value": { "kind": "ref", "value": { "id": "string", "metadata": { "aliases": [], "examples": [] } } } }, "default": { "kind": "bool", "value": true }, "required": true, "env_var": "string" } ], "flags": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "shape": { "kind": "bool-flag", "value": { "default": true, "negatable": true } }, "env_var": "string" } ], "constraints": [ { "kind": "requires-all", "value": [ { "kind": "present", "value": "string" } ] } ], "stdin": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "stdout": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "stderr": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "result": { "type_": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } }, "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "formatters": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ {} ] } } ], "default_formatter": "string" }, "errors": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "kind": "usage-error", "exit_code": 0, "payload": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ null ], "examples": [ null ], "deprecated": "string", "role": {} } } } } ], "annotations": { "read_only": true, "destructive": true, "idempotent": true, "open_world": true } } } ] }, "schema": { "defs": [ { "id": "string", "name": "string", "body": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } } ], "root": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } } }, "metadataVersion": "string", "metadataDigest": "string", "sourceDigest": "string" }, "releaseOwner": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "email": "string" } } ] }

Grant an exact published tool release to an environment

PathMethodProtected
/v1/envs/{environment_id}/toolsPOSTYes

Example Request JSON

{ "release": { "type": "ById", "releaseId": "829d5913-a352-42a5-be6f-1526f30c0c85" }, "automatic": true }

Example Response JSON

{ "grant": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563", "toolReleaseId": "4627e620-f60c-4beb-9b02-d50968f37183", "protected": true, "automatic": true, "followCoordinates": true, "lifecycle": "active", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "stateChangedAt": "2019-08-24T14:15:22Z", "stateChangedBy": "2b961163-2f23-4eaa-a259-05736f8f6815" }, "release": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "version": "string", "definition": { "version": "string", "requires_filesystem": true, "commands": { "nodes": [ { "name": "string", "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "globals": { "options": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "shape": { "kind": "scalar", "value": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } }, "default": { "kind": "bool", "value": true }, "required": true, "env_var": "string" } ], "flags": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "shape": { "kind": "bool-flag", "value": { "default": true, "negatable": true } }, "env_var": "string" } ] }, "subcommands": [ 0 ], "body": { "positionals": { "fixed": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "type_": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } }, "default": { "kind": "bool", "value": true }, "required": true, "accepts_stdio": true } ], "tail": { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "item_type": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } }, "min": 0, "max": 0, "separator": "string", "verbatim": true, "accepts_stdio": true } }, "options": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "shape": { "kind": "scalar", "value": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } }, "default": { "kind": "bool", "value": true }, "required": true, "env_var": "string" } ], "flags": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "shape": { "kind": "bool-flag", "value": { "default": true, "negatable": true } }, "env_var": "string" } ], "constraints": [ { "kind": "requires-all", "value": [ { "kind": "present", "value": "string" } ] } ], "stdin": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "stdout": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "stderr": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "result": { "type_": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } }, "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "formatters": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] } } ], "default_formatter": "string" }, "errors": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "kind": "usage-error", "exit_code": 0, "payload": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } } ], "annotations": { "read_only": true, "destructive": true, "idempotent": true, "open_world": true } } } ] }, "schema": { "defs": [ { "id": "string", "name": "string", "body": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } } ], "root": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } } }, "metadataVersion": "string", "metadataDigest": "string", "sourceDigest": "string" }, "releaseOwner": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "email": "string" } }

Validate environment tool grants and publications without changing them

PathMethodProtected
/v1/envs/{environment_id}/tools/validatePOSTYes

Example Request JSON

{ "grantReconciliation": { "creations": [ { "release": { "type": "ById", "releaseId": "829d5913-a352-42a5-be6f-1526f30c0c85" }, "automatic": true } ], "deletions": [ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ] }, "publications": [ { "name": "string", "definition": { "version": "string", "requires_filesystem": true, "commands": { "nodes": [ { "name": "string", "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "globals": { "options": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "shape": { "kind": "scalar", "value": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ null ], "examples": [ null ], "deprecated": "string", "role": {} } } } }, "default": { "kind": "bool", "value": true }, "required": true, "env_var": "string" } ], "flags": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "shape": { "kind": "bool-flag", "value": { "default": true, "negatable": true } }, "env_var": "string" } ] }, "subcommands": [ 0 ], "body": { "positionals": { "fixed": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "type_": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ null ], "examples": [ null ], "deprecated": "string", "role": {} } } }, "default": { "kind": "bool", "value": true }, "required": true, "accepts_stdio": true } ], "tail": { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "item_type": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } }, "min": 0, "max": 0, "separator": "string", "verbatim": true, "accepts_stdio": true } }, "options": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "shape": { "kind": "scalar", "value": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ null ], "examples": [ null ], "deprecated": "string", "role": {} } } } }, "default": { "kind": "bool", "value": true }, "required": true, "env_var": "string" } ], "flags": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "shape": { "kind": "bool-flag", "value": { "default": true, "negatable": true } }, "env_var": "string" } ], "constraints": [ { "kind": "requires-all", "value": [ { "kind": "present", "value": "string" } ] } ], "stdin": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "stdout": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "stderr": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "result": { "type_": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } }, "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "formatters": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] } } ], "default_formatter": "string" }, "errors": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "kind": "usage-error", "exit_code": 0, "payload": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } } ], "annotations": { "read_only": true, "destructive": true, "idempotent": true, "open_world": true } } } ] }, "schema": { "defs": [ { "id": "string", "name": "string", "body": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } } ], "root": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } } } } ] }

Example Response JSON

{ "publicationPlan": [ { "action": "noChange", "name": "string", "version": "string", "reason": "string" } ] }

Get an active environment tool grant

PathMethodProtected
/v1/environment-tools/{grant_id}GETYes

Example Response JSON

{ "grant": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563", "toolReleaseId": "4627e620-f60c-4beb-9b02-d50968f37183", "protected": true, "automatic": true, "followCoordinates": true, "lifecycle": "active", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "stateChangedAt": "2019-08-24T14:15:22Z", "stateChangedBy": "2b961163-2f23-4eaa-a259-05736f8f6815" }, "release": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "version": "string", "definition": { "version": "string", "requires_filesystem": true, "commands": { "nodes": [ { "name": "string", "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "globals": { "options": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "shape": { "kind": "scalar", "value": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } }, "default": { "kind": "bool", "value": true }, "required": true, "env_var": "string" } ], "flags": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "shape": { "kind": "bool-flag", "value": { "default": true, "negatable": true } }, "env_var": "string" } ] }, "subcommands": [ 0 ], "body": { "positionals": { "fixed": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "type_": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } }, "default": { "kind": "bool", "value": true }, "required": true, "accepts_stdio": true } ], "tail": { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "item_type": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } }, "min": 0, "max": 0, "separator": "string", "verbatim": true, "accepts_stdio": true } }, "options": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "shape": { "kind": "scalar", "value": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } }, "default": { "kind": "bool", "value": true }, "required": true, "env_var": "string" } ], "flags": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "shape": { "kind": "bool-flag", "value": { "default": true, "negatable": true } }, "env_var": "string" } ], "constraints": [ { "kind": "requires-all", "value": [ { "kind": "present", "value": "string" } ] } ], "stdin": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "stdout": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "stderr": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "result": { "type_": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } }, "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "formatters": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] } } ], "default_formatter": "string" }, "errors": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "kind": "usage-error", "exit_code": 0, "payload": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } } ], "annotations": { "read_only": true, "destructive": true, "idempotent": true, "open_world": true } } } ] }, "schema": { "defs": [ { "id": "string", "name": "string", "body": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } } ], "root": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } } }, "metadataVersion": "string", "metadataDigest": "string", "sourceDigest": "string" }, "releaseOwner": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "email": "string" } }

Delete an environment tool grant

PathMethodProtected
/v1/environment-tools/{grant_id}DELETEYes

Example Request JSON

{ "automatic": true }

Restore a deleted environment tool grant

PathMethodProtected
/v1/environment-tools/{grant_id}/restorePOSTYes

Example Response JSON

{ "grant": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563", "toolReleaseId": "4627e620-f60c-4beb-9b02-d50968f37183", "protected": true, "automatic": true, "followCoordinates": true, "lifecycle": "active", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "stateChangedAt": "2019-08-24T14:15:22Z", "stateChangedBy": "2b961163-2f23-4eaa-a259-05736f8f6815" }, "release": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "version": "string", "definition": { "version": "string", "requires_filesystem": true, "commands": { "nodes": [ { "name": "string", "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "globals": { "options": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "shape": { "kind": "scalar", "value": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } }, "default": { "kind": "bool", "value": true }, "required": true, "env_var": "string" } ], "flags": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "shape": { "kind": "bool-flag", "value": { "default": true, "negatable": true } }, "env_var": "string" } ] }, "subcommands": [ 0 ], "body": { "positionals": { "fixed": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "type_": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } }, "default": { "kind": "bool", "value": true }, "required": true, "accepts_stdio": true } ], "tail": { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "item_type": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } }, "min": 0, "max": 0, "separator": "string", "verbatim": true, "accepts_stdio": true } }, "options": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "value_name": "string", "shape": { "kind": "scalar", "value": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } }, "default": { "kind": "bool", "value": true }, "required": true, "env_var": "string" } ], "flags": [ { "long": "string", "short": null, "aliases": [ "string" ], "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "shape": { "kind": "bool-flag", "value": { "default": true, "negatable": true } }, "env_var": "string" } ], "constraints": [ { "kind": "requires-all", "value": [ { "kind": "present", "value": "string" } ] } ], "stdin": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "stdout": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "stderr": { "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "mime": [ "string" ], "required": true }, "result": { "type_": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } }, "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "formatters": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] } } ], "default_formatter": "string" }, "errors": [ { "name": "string", "doc": { "summary": "string", "description": "string", "examples": [ { "title": "string", "body": "string" } ] }, "kind": "usage-error", "exit_code": 0, "payload": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } } ], "annotations": { "read_only": true, "destructive": true, "idempotent": true, "open_world": true } } } ] }, "schema": { "defs": [ { "id": "string", "name": "string", "body": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } } ], "root": { "kind": "ref", "value": { "id": "string", "metadata": { "doc": "string", "aliases": [ "string" ], "examples": [ "string" ], "deprecated": "string", "role": { "tag": "multimodal" } } } } } }, "metadataVersion": "string", "metadataDigest": "string", "sourceDigest": "string" }, "releaseOwner": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "email": "string" } }

Environment Tool Grants API Errors

Status CodeDescriptionBody
400Invalid request, returning with a list of issues detected in the request{"code":"string","errors":["string"]}
401Unauthorized request{"code":"string","error":"string"}
403Forbidden Request{"code":"string","error":"string"}
404Entity not found{"code":"string","error":"string"}
409{"code":"string","error":"string"}
422Limits of the plan exceeded{"code":"string","error":"string"}
500Internal server error{"code":"string","error":"string"}