Publish agent configuration within local permission limits
POST /api/v1/agents/{id}/configuration
Optimistic concurrency uses expectedRevision (0 initially). Publication blocks new job claims until the agent acknowledges this revision. Existing running jobs may complete. Local opt-in and scope checks are enforced by scanner 0.11.0 or newer; capture capability and captureRoots require scanner 0.13.0 or newer. Omit captureRoots for older non-capture agents. AWS KMS capability and allowedAwsKmsKeys require scanner 0.16.0 with separately provisioned AWS SDK dependencies; use exact full key ARNs with matching partition and Region. Profiles and AWS credentials remain local. Omit allowedAwsKmsKeys for older agents. GCP KMS capability and allowedGcpKmsVersions require scanner 0.17.0 and the GCP dependency environment. Each target is an exact numeric key-version resource name; identity configuration stays local. Omit this field for older agents. Azure Key Vault capability and allowedAzureKeyVersions require scanner 0.18.0+ and its locked dependency environment. Targets must be exact public-cloud key-version URLs. Azure identity methods and credentials remain local; omit this field for older agents. Configuration is delivered only to the authenticated agent through heartbeat.
Allowed roles: admin.
Authentication
The following OpenAPI alternatives describe accepted authentication. Browser mutations also require the canonical Origin header.
[
{
"organizationCredential": []
},
{
"browserSession": []
}
]
Parameters
[
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
]
Request body
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentConfigurationInput"
}
}
}
}
Responses
{
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"revision": {
"type": "integer"
},
"settings": {
"$ref": "#/components/schemas/ManagedSettings"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"updatedBy": {
"type": "string"
}
},
"required": [
"revision",
"settings",
"updatedAt",
"updatedBy"
]
}
}
}
},
"400": {
"description": "Validation error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Missing/expired/revoked credential",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Insufficient role",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"409": {
"description": "State or idempotency conflict",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"413": {
"description": "Body too large",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Unsupported media type",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"429": {
"description": "Request budget exhausted; respect Retry-After",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"headers": {
"Retry-After": {
"schema": {
"type": "integer",
"minimum": 1
},
"description": "Seconds until sufficient budget is expected; concurrent traffic may consume replenished capacity."
}
}
},
"500": {
"description": "Internal error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"503": {
"description": "Not configured",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
References such as #/components/schemas/Asset resolve in shared schemas. Download the OpenAPI contract for client generation. This page is generated; it describes the implemented development API, not planned endpoints.