Create a repository threat-model version
PUT
/v1/security/repositories/{repositoryId}/threat-modelHow to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| repositoryId | path | string | Yes | Monitored security repository ID |
Query parameters
None.
Header parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| X-Computer-Agents-Organization | header | string | No | Active organization context. If omitted, the authenticated user's personal organization is used. |
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| value | object | Yes | — |
| value.schemaVersion | 1 | Yes | — |
| value.summary | string | Yes | — |
| value.entryPoints | string[] | Yes | — |
| value.untrustedInputs | string[] | Yes | — |
| value.trustBoundaries | string[] | Yes | — |
| value.sensitiveDataPaths | string[] | Yes | — |
| value.privilegedActions | string[] | Yes | — |
| value.priorityAreas | string[] | Yes | — |
| value.exclusions | object[] | Yes | — |
| value.exclusions[].path | string | Yes | Workspace-relative file path. |
| value.exclusions[].reason | string | Yes | — |
| changeSummary | string | No | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200New immutable threat-model versionapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Unique identifier. |
| version | integer | Yes | — |
| source | generated | user | migration | Yes | — |
| value | object | Yes | — |
| value.schemaVersion | 1 | Yes | — |
| value.summary | string | Yes | — |
| value.entryPoints | string[] | Yes | — |
| value.untrustedInputs | string[] | Yes | — |
| value.trustBoundaries | string[] | Yes | — |
| value.sensitiveDataPaths | string[] | Yes | — |
| value.privilegedActions | string[] | Yes | — |
| value.priorityAreas | string[] | Yes | — |
| value.exclusions | object[] | Yes | — |
| value.exclusions[].path | string | Yes | Workspace-relative file path. |
| value.exclusions[].reason | string | Yes | — |
| changeSummary | string | Yes | — |
| createdAt | string | Yes | ISO 8601 timestamp. |
404Resource not foundapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| error | string | No | — |
Create a repository threat-model version
Loading...
Response 200
Loading...