Update a monitored repository

PATCH/v1/security/repositories/{repositoryId}

How 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
NameLocationTypeRequiredDescription
repositoryIdpathstringYesMonitored security repository ID
Query parameters
None.
Header parameters
NameLocationTypeRequiredDescription
X-Computer-Agents-OrganizationheaderstringNoActive organization context. If omitted, the authenticated user's personal organization is used.

Body schema

Content type: application/json · Required

FieldTypeRequiredDescription
statusactive | pausedNoCurrent lifecycle status.
permissionSetobjectNo
metadataobjectNoFree-form metadata object.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Updated repositoryapplication/json
FieldTypeRequiredDescription
idstringYesUnique identifier.
githubRepositoryIdstringYes
githubInstallationIdstringYes
githubNumericRepositoryIdstringNo
githubNumericInstallationIdstringNo
fullNamestringYes
defaultBranchstringYes
privatebooleanYes
archivedbooleanYes
statusactive | paused | disconnectedYesCurrent lifecycle status.
currentPolicyVersionIdstringNo
currentThreatModelVersionIdstringNo
permissionSetobjectNo
lastRunIdstringNo
lastRunAtstringNo
nextScanAtstringNo
metadataobjectNoFree-form metadata object.
findingCountsobjectYes
findingCounts.openintegerYes
findingCounts.criticalintegerYes
findingCounts.highintegerYes
lastRunStatusqueued | running | waiting_approval | succeeded | partial | failed | cancelledNo
lastRunStageingest | checkout | inventory | scan | validate | triage | remediate | verify | publish | completeNo
createdAtstringYesISO 8601 timestamp.
updatedAtstringYesISO 8601 timestamp.
404Resource not foundapplication/json
FieldTypeRequiredDescription
errorstringNo
Update a monitored repository
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow