# Set what an item or a group does without asking

- **OpenAPI Version:** `3.2.0`
- **API Version:** `3.1.0`
- **Contact:** Syndai <https://syndai.ai>

## Contents

**Operations**

- [PUT /api/v1/external/coding/customers/{customer\_id}/without-asking/items](#scalar-operation-put-apiv1externalcodingcustomerscustomer-idwithout-askingitems)

**Schemas**

- [ItemsWrite](#scalar-schema-itemswrite)
- [ItemRef](#scalar-schema-itemref)
- [WithoutAskingRead](#scalar-schema-withoutaskingread)
- [agent\_permission\_items\_GroupRead](#scalar-schema-agent-permission-items-groupread)
- [ItemRead](#scalar-schema-itemread)
- [AgentActRead](#scalar-schema-agentactread)
- [RiskyItemRead](#scalar-schema-riskyitemread)
- [ProblemDetail](#scalar-schema-problemdetail)
- [ExternalErrorCode](#scalar-schema-externalerrorcode)

<a id="scalar-context-global-servers"></a>

## Servers

- **URL:** `https://api.syndai.ai`

<a id="scalar-context-global-authentication"></a>

## Authentication

- **CustomerApiKey**: HTTP bearer (`API Key`)

  Customer API key sent as a bearer token

## Tags

### Apps

Beta: may change without notice. Publishing a repository as a hosted app: publish, unpublish, read and update a publication, its deployments, custom domain, runtime and monthly AI limit, export its data or waitlist, and read the Slack channel its Inbox notices go to.

## Operations

<a id="scalar-operation-put-apiv1externalcodingcustomerscustomer-idwithout-askingitems"></a>

### Set what an item or a group does without asking

- **Method:** `PUT`
- **Path:** `/api/v1/external/coding/customers/{customer_id}/without-asking/items`
- **Operation ID:** `setWithoutAskingItems`
- **Tags:** Apps

`rule`: `allow` (Always allow), `ask` (Needs approval), `never` (Blocked) or `null` (back to the default here) for each of `items` on the workspace or one project (`repository_id`; a workspace Block holds for every project). Locked items refuse `allow` (400); a Block never expires. `server` (an MCP group's choice) also sets that server's row, which a tool approved later follows (Always allow only where the tool says it is read-only). A signed-in owner or admin only: an API key or the project agent is 403 `HUMAN_APPROVAL_REQUIRED`. Audited (`customer.agent_rule.set`/`cleared`).

**Servers:** [Inherited servers](#scalar-context-global-servers)

**Authentication:** [Global authentication](#scalar-context-global-authentication)

#### Path parameters

- **`customer_id` (required)**: `string`, format: `uuid`

#### Request body

**Required:** `true`

**Content type:** `application/json`

[ItemsWrite](#scalar-schema-itemswrite)

<a id="scalar-example-1"></a>

**Generated example:**

```json
{
  "expires_at": "",
  "items": [
    {
      "custom_tool_id": "",
      "tool": ""
    }
  ],
  "repository_id": "",
  "rule": "allow",
  "server": ""
}
```

#### Responses

##### 200 Request fulfilled, document follows

**Content type:** `application/json`

[WithoutAskingRead](#scalar-schema-withoutaskingread)

<a id="scalar-example-2"></a>

**Generated example:**

```json
{
  "can_edit": true,
  "groups": [
    {
      "custom_tool_id": "",
      "id": "",
      "items": [
        {
          "custom_tool_id": "",
          "expires_at": "",
          "levels": [
            ""
          ],
          "locked": true,
          "note": "",
          "project_rule": "",
          "read_only_hint": false,
          "rule": "",
          "source": "",
          "title": "",
          "tool": "",
          "workspace_rule": ""
        }
      ],
      "levels": [
        ""
      ],
      "title": ""
    }
  ],
  "level": "",
  "project_level": "",
  "recent": [
    {
      "action": "",
      "at": "",
      "coding_run_id": "",
      "package": "",
      "paths": 1
    }
  ],
  "risky": [
    {
      "action": "",
      "exception": "",
      "expires_at": "",
      "runs": true,
      "scope": ""
    }
  ],
  "workspace_level": ""
}
```

##### 400, 401, 403, 404

- `400` Bad request syntax or unsupported method
- `401` Invalid or missing customer API key
- `403` Insufficient scope or forbidden customer access
- `404` Resource not found

**Content type:** `application/problem+json`

[ProblemDetail](#scalar-schema-problemdetail)

RFC 7807 problem detail returned for public CaaS errors.

<a id="scalar-example-3"></a>

**Generated example:**

```json
{
  "code": "BUDGET_EXHAUSTED",
  "detail": null,
  "existing_run_id": null,
  "instance": null,
  "status": 1,
  "title": "",
  "type": "about:blank",
  "additionalProperty": "anything"
}
```

##### 429 Rate limit exceeded

**Headers:**

- **`Retry-After`**

  Seconds to wait before retrying the request

  `integer`

**Content type:** `application/problem+json`

[ProblemDetail](#scalar-schema-problemdetail)

RFC 7807 problem detail returned for public CaaS errors.

[Generated example](#scalar-example-3)

##### default Unexpected error

**Content type:** `application/problem+json`

[ProblemDetail](#scalar-schema-problemdetail)

<a id="scalar-example-4"></a>

**Generated example:**

```json
null
```

## Schemas

<a id="scalar-schema-itemswrite"></a>

### ItemsWrite

**Type:** `object`

- **`items` (required)**: array of [ItemRef](#scalar-schema-itemref)
- **`expires_at`**: `string | null`, format: `date-time`
- **`repository_id`**: `string | null`, format: `uuid`
- **`rule`**: `null | string`, possible values: `"allow", "ask", "never", null`
- **`server`**: `string | null`, format: `uuid`

<a id="scalar-example-5"></a>

**Generated example:**

```json
{
  "expires_at": "",
  "items": [
    {
      "custom_tool_id": "",
      "tool": ""
    }
  ],
  "repository_id": "",
  "rule": "allow",
  "server": ""
}
```

<a id="scalar-schema-itemref"></a>

### ItemRef

**Type:** `object`

- **`tool` (required)**: `string`
- **`custom_tool_id`**: `string | null`, format: `uuid`

<a id="scalar-example-6"></a>

**Generated example:**

```json
{
  "custom_tool_id": "",
  "tool": ""
}
```

<a id="scalar-schema-withoutaskingread"></a>

### WithoutAskingRead

**Type:** `object`

- **`can_edit` (required)**: `boolean`
- **`level` (required)**: `string`
- **`recent` (required)**: array of [AgentActRead](#scalar-schema-agentactread)
- **`risky` (required)**: array of [RiskyItemRead](#scalar-schema-riskyitemread)
- **`workspace_level` (required)**: `string`
- **`groups`**: array of [agent\_permission\_items\_GroupRead](#scalar-schema-agent-permission-items-groupread)
- **`project_level`**: `string | null`

<a id="scalar-example-7"></a>

**Generated example:**

```json
{
  "can_edit": true,
  "groups": [
    {
      "custom_tool_id": "",
      "id": "",
      "items": [
        {
          "custom_tool_id": "",
          "expires_at": "",
          "levels": [
            ""
          ],
          "locked": true,
          "note": "",
          "project_rule": "",
          "read_only_hint": false,
          "rule": "",
          "source": "",
          "title": "",
          "tool": "",
          "workspace_rule": ""
        }
      ],
      "levels": [
        ""
      ],
      "title": ""
    }
  ],
  "level": "",
  "project_level": "",
  "recent": [
    {
      "action": "",
      "at": "",
      "coding_run_id": "",
      "package": "",
      "paths": 1
    }
  ],
  "risky": [
    {
      "action": "",
      "exception": "",
      "expires_at": "",
      "runs": true,
      "scope": ""
    }
  ],
  "workspace_level": ""
}
```

<a id="scalar-schema-agent-permission-items-groupread"></a>

### GroupRead

**Type:** `object`

- **`id` (required)**: `string`
- **`items` (required)**: array of [ItemRead](#scalar-schema-itemread)
- **`levels` (required)**: `array of string`
- **`title` (required)**: `string`
- **`custom_tool_id`**: `string | null`, format: `uuid`

<a id="scalar-example-8"></a>

**Generated example:**

```json
{
  "custom_tool_id": "",
  "id": "",
  "items": [
    {
      "custom_tool_id": "",
      "expires_at": "",
      "levels": [
        ""
      ],
      "locked": true,
      "note": "",
      "project_rule": "",
      "read_only_hint": false,
      "rule": "",
      "source": "",
      "title": "",
      "tool": "",
      "workspace_rule": ""
    }
  ],
  "levels": [
    ""
  ],
  "title": ""
}
```

<a id="scalar-schema-itemread"></a>

### ItemRead

**Type:** `object`

- **`levels` (required)**: `array of string`
- **`locked` (required)**: `boolean`
- **`rule` (required)**: `string`
- **`source` (required)**: `string`
- **`title` (required)**: `string`
- **`tool` (required)**: `string`
- **`custom_tool_id`**: `string | null`, format: `uuid`
- **`expires_at`**: `string | null`, format: `date-time`
- **`note`**: `string | null`
- **`project_rule`**: `string | null`
- **`read_only_hint`**: `boolean`, default: `false`
- **`workspace_rule`**: `string | null`

<a id="scalar-example-9"></a>

**Generated example:**

```json
{
  "custom_tool_id": "",
  "expires_at": "",
  "levels": [
    ""
  ],
  "locked": true,
  "note": "",
  "project_rule": "",
  "read_only_hint": false,
  "rule": "",
  "source": "",
  "title": "",
  "tool": "",
  "workspace_rule": ""
}
```

<a id="scalar-schema-agentactread"></a>

### AgentActRead

**Type:** `object`

- **`action` (required)**: `string`
- **`at` (required)**: `string`, format: `date-time`
- **`coding_run_id`**: `string | null`
- **`package`**: `string | null`
- **`paths`**: `integer | null`

<a id="scalar-example-10"></a>

**Generated example:**

```json
{
  "action": "",
  "at": "",
  "coding_run_id": "",
  "package": "",
  "paths": 1
}
```

<a id="scalar-schema-riskyitemread"></a>

### RiskyItemRead

**Type:** `object`

- **`action` (required)**: `string`
- **`runs` (required)**: `boolean`
- **`exception`**: `string | null`
- **`expires_at`**: `string | null`, format: `date-time`
- **`scope`**: `string | null`

<a id="scalar-example-11"></a>

**Generated example:**

```json
{
  "action": "",
  "exception": "",
  "expires_at": "",
  "runs": true,
  "scope": ""
}
```

<a id="scalar-schema-problemdetail"></a>

### ProblemDetail

**Type:** `object`

RFC 7807 problem detail returned for public CaaS errors.

- **`code` (required)**: `string`, possible values: `"BUDGET_EXHAUSTED", "QUOTA_EXCEEDED", "INSUFFICIENT_CREDITS", "RUN_CONCURRENCY_LIMIT", "CUSTOMER_DISABLED", "REPO_NOT_BOUND", "REPO_ARCHIVED", "IDEMPOTENCY_REPLAY", "CONFLICT", "MISSION_BUSY_RETRY", "HITL_REQUEST_CONFLICT", "HITL_REQUEST_SETTLED", "RUN_TERMINATED_BEFORE_RESPONSE", "INVALID_POLICY", "INVALID_SCOPE", "RATE_LIMITED", "INSTALLATION_INCOMPLETE", "SUBSCRIPTION_USAGE_UNAVAILABLE", "INVALID_TOKEN", "ROLE_REQUIRED", "PLAN_UPGRADE_REQUIRED", "EMAIL_MISMATCH", "EXPIRED_TOKEN", "NOT_FOUND", "OVERSCOPE_ACK_REQUIRED", "VERIFY_FAILED", "PUBLISH_IN_FLIGHT", "PUBLISH_UNSUPPORTED_REPO", "PUBLICATION_NOT_LIVE", "NO_APP_DATA", "FEATURE_REQUESTS_NEEDS_MEMBERS", "EMPTY_UPDATE", "BAD_CURSOR", "HUMAN_APPROVAL_REQUIRED", "PROTECTED_PATHS_MANAGED_ONLY", "RUN_IN_FLIGHT", "TEXT_EDIT_REFUSED", "CLI_UPGRADE_REQUIRED", "PRODUCTION_STEP_UP_REQUIRED", "PRICES_UPDATING", "GITHUB_UNAVAILABLE", "PUBLISH_NOT_SET_UP", "PUBLISH_TAG_EXISTS", "PUBLISH_VERSION_EXISTS", "VERSION_NOT_DEPLOYED", "DATA_REFUSED", "HARNESS_MODEL_UNSUPPORTED", "ECONOMY_CONFLICTS_WITH_MODEL", "HARNESS_UNKNOWN", "INTERNAL_ERROR"`

  Stable error codes surfaced to public CaaS clients.
- **`status` (required)**: `integer`
- **`title` (required)**: `string`
- **`detail`**: `string | null`, default: `null`
- **`existing_run_id`**: `string | null`, default: `null`
- **`instance`**: `string | null`, default: `null`
- **`type`**: `string`, default: `"about:blank"`

<a id="scalar-example-12"></a>

**Generated example:**

```json
{
  "code": "BUDGET_EXHAUSTED",
  "detail": null,
  "existing_run_id": null,
  "instance": null,
  "status": 1,
  "title": "",
  "type": "about:blank",
  "additionalProperty": "anything"
}
```

<a id="scalar-schema-externalerrorcode"></a>

### ExternalErrorCode

**Type:** `string`, possible values: `"BUDGET_EXHAUSTED", "QUOTA_EXCEEDED", "INSUFFICIENT_CREDITS", "RUN_CONCURRENCY_LIMIT", "CUSTOMER_DISABLED", "REPO_NOT_BOUND", "REPO_ARCHIVED", "IDEMPOTENCY_REPLAY", "CONFLICT", "MISSION_BUSY_RETRY", "HITL_REQUEST_CONFLICT", "HITL_REQUEST_SETTLED", "RUN_TERMINATED_BEFORE_RESPONSE", "INVALID_POLICY", "INVALID_SCOPE", "RATE_LIMITED", "INSTALLATION_INCOMPLETE", "SUBSCRIPTION_USAGE_UNAVAILABLE", "INVALID_TOKEN", "ROLE_REQUIRED", "PLAN_UPGRADE_REQUIRED", "EMAIL_MISMATCH", "EXPIRED_TOKEN", "NOT_FOUND", "OVERSCOPE_ACK_REQUIRED", "VERIFY_FAILED", "PUBLISH_IN_FLIGHT", "PUBLISH_UNSUPPORTED_REPO", "PUBLICATION_NOT_LIVE", "NO_APP_DATA", "FEATURE_REQUESTS_NEEDS_MEMBERS", "EMPTY_UPDATE", "BAD_CURSOR", "HUMAN_APPROVAL_REQUIRED", "PROTECTED_PATHS_MANAGED_ONLY", "RUN_IN_FLIGHT", "TEXT_EDIT_REFUSED", "CLI_UPGRADE_REQUIRED", "PRODUCTION_STEP_UP_REQUIRED", "PRICES_UPDATING", "GITHUB_UNAVAILABLE", "PUBLISH_NOT_SET_UP", "PUBLISH_TAG_EXISTS", "PUBLISH_VERSION_EXISTS", "VERSION_NOT_DEPLOYED", "DATA_REFUSED", "HARNESS_MODEL_UNSUPPORTED", "ECONOMY_CONFLICTS_WITH_MODEL", "HARNESS_UNKNOWN", "INTERNAL_ERROR"`

Stable error codes surfaced to public CaaS clients.
