Update a repository authorization
Raise an existing repository grant to a stronger access tier after re-checking the caller’s matching GitHub permission, change how the repository is materialized (materialize: always, decision or on-demand; decision needs the agent’s repositorySelector and daemons serving the agent that advertise repo-selector-v1, else 409 with REPOSITORY_SELECTOR_MISSING or DAEMON_FEATURE_MISSING), or both. At least one field is required. Downgrades still require revoke and reauthorize so review-check cleanup remains explicit; materialize moves freely and re-projects the agent’s spec.
Authorization
bearerAuth In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/orgs/string/agents/string/repos/string" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "provider": "github", "repoId": "string", "repoFullName": "string", "access": "read", "materialize": "always", "createdBy": "string", "createdAt": "string"}