---
title: "Approve a commit"
method: POST
path: "/repositories/{workspace}/{repo_slug}/commit/{commit}/approve"
tags: ["Commits"]
---

# Approve a commit

`POST /repositories/{workspace}/{repo_slug}/commit/{commit}/approve`

Approve the specified commit as the authenticated user.

This operation is only available to users that have explicit access to
the repository. In contrast, just the fact that a repository is
publicly accessible to users does not give them the ability to approve
commits.

## Response `200`

The `participant` object recording that the authenticated user approved the commit.

- Participant — Object describing a user's role on resources like commits or pull requests.
  - `type` string, required
  - `user` Account — An account object.
    - `type` string, required
    - `links` AccountLinks — Links related to an Account.
      - `avatar` Link — A link to a resource related to this object.
        - `href` string, uri
        - `name` string
    - `created_on` string, date-time
    - `display_name` string
    - `uuid` string
  - `role` 'PARTICIPANT' | 'REVIEWER'
  - `approved` boolean
  - `state` string
  - `participated_on` string, date-time — The ISO8601 timestamp of the participant's action. For approvers, this is the time of their approval. For commenters and pull request reviewers who are not approvers, this is the time they last commented, or null if they have not commented.

## Other responses

- `404` — If the specified commit, or the repository does not exist.

---

[API](https://skmtc.net/bitbucket/apis/bitbucket-api.md) · [All operations](https://skmtc.net/bitbucket/apis/bitbucket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitbucket/bitbucket-api/versions/4ec8bd2515c5/schema)
