---
title: "Allow once or deny your push"
method: POST
path: "/v1/workbot/cloud-coding/approvals/{approvalId}/decision"
tags: ["Workbot"]
---

# Allow once or deny your push

`POST /v1/workbot/cloud-coding/approvals/{approvalId}/decision`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/workbot/cloud-coding/approvals/{approvalId}/decision`
- Auth: HTTP bearer

Decides a pending push for the member signed in to Workbot. Allow once applies only to the commit shown in the approval.

## Path parameters

- `approvalId` string, required

## Request body

- CloudCodingPushDecisionInput
  - `decision` 'allow_once' | 'deny', required

## Response `200`

Allow once or deny your push

- CloudCodingPushApproval
  - `id` string, required
  - `taskId` string, required
  - `agentId` string, nullable
  - `agentName` string, nullable
  - `status` 'pending' | 'approved' | 'denied' | 'pushed' | 'expired' | 'superseded', required
  - `repositoryFullName` string, required
  - `branch` string, required
  - `baseBranch` string, required
  - `headSha` string, nullable, required
  - `title` string, required
  - `files` CloudCodingFileChange[], required
    - `path` string, required
    - `change` 'added' | 'modified' | 'deleted', required
  - `fileCount` integer, required
  - `tests` CloudCodingTestReport, required
    - `status` 'passed' | 'failed' | 'not_run', required
    - `command` string, nullable, required
    - `summary` string, nullable, required
  - `requestedAt` string, date-time, required
  - `expiresAt` string, date-time, required
  - `decidedAt` string, date-time, nullable, required
  - `pullRequest` object, nullable, required
    - `number` integer, required
    - `url` string, uri, required
    - `state` 'open' | 'merged' | 'closed', required

## Other responses

- `400`: Check the decision you entered.
- `401`: Sign in to Workbot to continue.
- `403`: A Workbot person token with the required scope is needed.
- `404`: Cloud coding is off or the approval was not found.
- `409`: The approval is no longer pending.

## Changes

- **2026-12-02** `1c1cd9580c18`: 2 info
  - added the optional property `agentId` to the response with the `200` status
  - added the optional property `agentName` to the response with the `200` status
- **2026-11-30** `46df230c9438`: 1 breaking, 1 info
  - response property `headSha` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - the `headSha` response's property pattern `^[0-9a-f]{40}$` was removed for the status `200`
- **2026-11-29** `8a5cecbbb048`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/workbot/cloud-coding/approvals/:approvalId/decision/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
