Approve a waiting revision

POST /api/v1/code/automations/{automationId}/revisions/{revisionId}/approve on the Caveman Cloud control plane. Requires the code:write scope. Not exposed to autonomous agents: Cloud automations are applied from a repository's .caveman/ files by the Code app, a code:run key or a push to the default branch, and a person approves wider authority (ADR 0133). An agent works inside a run's session and never applies, approves, enables or fires automations from a control-plane connection.

post/code/automations/{automationId}/revisions/{revisionId}/approve

Request

  • Base URL
    https://api.caveman.so/api/v1
  • URL
    https://api.caveman.so/api/v1/code/automations/{automationId}/revisions/{revisionId}/approve
  • Auth
    • OAuth 2
      Authorization code: /api/v1/oauth/authorize
      Token URL: /api/v1/oauth/token scopes: code:write
    • or HTTP bearer
    • or API key in cookie cave_access
    • or API key in cookie __Secure-cave_identity.session_token

Request body

service_account_idstring uuid

Response

The automation, the now-active revision and, once, its hook

hookobject

Changes

No recorded changes to this operation across all 1 revision of this API.