Skip to main content
PUT
Update Devin CLI Team Permission Rules

Overview

Replaces your team’s account-wide Devin CLI permission rules — the same Terminal Permissions configured in team settings. To prevent overwriting concurrent changes, pass the ETag from Get CLI Permissions in the If-Match header. If the rules changed in the meantime, the request fails with 412.
This endpoint is in alpha (v2alpha). The request and response shape may change.

Authentication

Pass a Devin service user API key (cog_...) in the Authorization header:
Requires the same permissions and plan as Get CLI Permissions. Personal tokens are rejected with 403.

Request

string
required
The ETag returned by GET /api/v2alpha/cli-permissions.
string[]
required
Actions Devin CLI approves automatically without prompting. Pass [] for an empty list.
string[]
required
Actions that always prompt the user for approval. Pass [] for an empty list.
string[]
required
Actions that are blocked. Pass [] for an empty list.
All three fields are required, and unknown fields are rejected. Each rule must follow Devin CLI permission syntax; unparseable rules return 400. Fetch(...) URL patterns are not validated by this endpoint — Devin CLI ignores patterns it cannot compile.

Example Request

Response

Returns the updated allow, ask, and deny lists with a new ETag header, matching Get CLI Permissions. Successful updates are recorded in the team audit log.

Error Responses

Errors are returned as {"error": "<message>"}.