Atlassian · Capability

Atlassian Bit Bucket Repositories API — Pull

Atlassian Bit Bucket Repositories API — Pull. 32 operations. Lead operation: Atlassian List Pull Requests That Contain Commit. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianPull

What You Can Do

GET
Listpullrequeststhatcontaincommit — Atlassian List Pull Requests That Contain Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/pullrequests
GET
Listpullrequests — Atlassian List Pull Requests
/v1/repositories/{workspace}/{repo-slug}/pullrequests
POST
Createpullrequest — Atlassian Create Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests
GET
Listpullrequestactivitylog — Atlassian List Pull Request Activity Log
/v1/repositories/{workspace}/{repo-slug}/pullrequests/activity
GET
Getpullrequest — Atlassian Get Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}
PUT
Updatepullrequest — Atlassian Update Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}
GET
Listpullrequestactivitylog — Atlassian List Pull Request Activity Log
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/activity
DELETE
Unapprovepullrequest — Atlassian Unapprove Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/approve
POST
Approvepullrequest — Atlassian Approve Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/approve
GET
Listcommentsonpullrequest — Atlassian List Comments on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments
POST
Createcommentonpullrequest — Atlassian Create Comment on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments
DELETE
Deletecommentonpullrequest — Atlassian Delete Comment on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-id}
GET
Getcommentonpullrequest — Atlassian Get Comment on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-id}
PUT
Updatecommentonpullrequest — Atlassian Update Comment on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-id}
GET
Listcommitsonpullrequest — Atlassian List Commits on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/commits
POST
Declinepullrequest — Atlassian Decline Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/decline
GET
Listchangesinpullrequest — Atlassian List Changes in Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/diff
GET
Getthediffstatforpullrequest — Atlassian Get the Diff Stat for Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/diffstat
POST
Mergepullrequest — Atlassian Merge Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/merge
GET
Getthemergetaskstatusforpullrequest — Atlassian Get the Merge Task Status for Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/merge/task-status/{task-id}
GET
Getthepatchforpullrequest — Atlassian Get the Patch for Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/patch
DELETE
Removechangerequestforpullrequest — Atlassian Remove Change Request for Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/request-changes
POST
Requestchangesforpullrequest — Atlassian Request Changes for Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/request-changes
GET
Listcommitstatusesforpullrequest — Atlassian List Commit Statuses for Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/statuses
GET
Listtasksonpullrequest — Atlassian List Tasks on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/tasks
POST
Createtaskonpullrequest — Atlassian Create Task on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/tasks
DELETE
Deletetaskonpullrequest — Atlassian Delete Task on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/tasks/{task-id}
GET
Gettaskonpullrequest — Atlassian Get Task on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/tasks/{task-id}
PUT
Updatetaskonpullrequest — Atlassian Update Task on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/tasks/{task-id}
PUT
Updatepullrequestapplicationproperty — Atlassian Update Pull Request Application Property
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pullrequest-id}/properties/{app-key}/{property-name}
DELETE
Deletepullrequestapplicationproperty — Atlassian Delete Pull Request Application Property
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pullrequest-id}/properties/{app-key}/{property-name}
GET
Getpullrequestapplicationproperty — Atlassian Get Pull Request Application Property
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pullrequest-id}/properties/{app-key}/{property-name}

MCP Tools

atlassian-list-pull-requests-that

Atlassian List Pull Requests That Contain Commit

read-only idempotent
atlassian-list-pull-requests

Atlassian List Pull Requests

read-only idempotent
atlassian-create-pull-request

Atlassian Create Pull Request

atlassian-list-pull-request-activity

Atlassian List Pull Request Activity Log

read-only idempotent
atlassian-get-pull-request

Atlassian Get Pull Request

read-only idempotent
atlassian-update-pull-request

Atlassian Update Pull Request

idempotent
atlassian-list-pull-request-activity-2

Atlassian List Pull Request Activity Log

read-only idempotent
atlassian-unapprove-pull-request

Atlassian Unapprove Pull Request

idempotent
atlassian-approve-pull-request

Atlassian Approve Pull Request

atlassian-list-comments-pull-request

Atlassian List Comments on Pull Request

read-only idempotent
atlassian-create-comment-pull-request

Atlassian Create Comment on Pull Request

atlassian-delete-comment-pull-request

Atlassian Delete Comment on Pull Request

idempotent
atlassian-get-comment-pull-request

Atlassian Get Comment on Pull Request

read-only idempotent
atlassian-update-comment-pull-request

Atlassian Update Comment on Pull Request

idempotent
atlassian-list-commits-pull-request

Atlassian List Commits on Pull Request

read-only idempotent
atlassian-decline-pull-request

Atlassian Decline Pull Request

atlassian-list-changes-pull-request

Atlassian List Changes in Pull Request

read-only idempotent
atlassian-get-diff-stat-pull

Atlassian Get the Diff Stat for Pull Request

read-only idempotent
atlassian-merge-pull-request

Atlassian Merge Pull Request

atlassian-get-merge-task-status

Atlassian Get the Merge Task Status for Pull Request

read-only idempotent
atlassian-get-patch-pull-request

Atlassian Get the Patch for Pull Request

read-only idempotent
atlassian-remove-change-request-pull

Atlassian Remove Change Request for Pull Request

idempotent
atlassian-request-changes-pull-request

Atlassian Request Changes for Pull Request

atlassian-list-commit-statuses-pull

Atlassian List Commit Statuses for Pull Request

read-only idempotent
atlassian-list-tasks-pull-request

Atlassian List Tasks on Pull Request

read-only idempotent
atlassian-create-task-pull-request

Atlassian Create Task on Pull Request

atlassian-delete-task-pull-request

Atlassian Delete Task on Pull Request

idempotent
atlassian-get-task-pull-request

Atlassian Get Task on Pull Request

read-only idempotent
atlassian-update-task-pull-request

Atlassian Update Task on Pull Request

idempotent
atlassian-update-pull-request-application

Atlassian Update Pull Request Application Property

idempotent
atlassian-delete-pull-request-application

Atlassian Delete Pull Request Application Property

idempotent
atlassian-get-pull-request-application

Atlassian Get Pull Request Application Property

read-only idempotent

Capability Spec

bitbucket-repositories-pull.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Pull
  description: 'Atlassian Bit Bucket Repositories API — Pull. 32 operations. Lead operation: Atlassian List Pull Requests
    That Contain Commit. Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Pull
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: bitbucket-repositories-pull
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Pull business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug-commit-commit-pullrequests
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/pullrequests
      operations:
      - name: listpullrequeststhatcontaincommit
        method: GET
        description: Atlassian List Pull Requests That Contain Commit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository; either the UUID in curly braces, or the slug
          required: true
        - name: commit
          in: path
          type: string
          description: The SHA1 of the commit
          required: true
        - name: page
          in: query
          type: integer
          description: Which page to retrieve
        - name: pagelen
          in: query
          type: integer
          description: How many pull requests to retrieve per page
    - name: repositories-workspace-repo_slug-pullrequests
      path: /repositories/{workspace}/{repo_slug}/pullrequests
      operations:
      - name: listpullrequests
        method: GET
        description: Atlassian List Pull Requests
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: state
          in: query
          type: string
          description: Only return pull requests that are in this state. This parameter can be repeated.
      - name: createpullrequest
        method: POST
        description: Atlassian Create Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repositories-workspace-repo_slug-pullrequests-activity
      path: /repositories/{workspace}/{repo_slug}/pullrequests/activity
      operations:
      - name: listpullrequestactivitylog
        method: GET
        description: Atlassian List Pull Request Activity Log
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}
      operations:
      - name: getpullrequest
        method: GET
        description: Atlassian Get Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatepullrequest
        method: PUT
        description: Atlassian Update Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-activity
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/activity
      operations:
      - name: listpullrequestactivitylog
        method: GET
        description: Atlassian List Pull Request Activity Log
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-approve
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/approve
      operations:
      - name: unapprovepullrequest
        method: DELETE
        description: Atlassian Unapprove Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: approvepullrequest
        method: POST
        description: Atlassian Approve Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-comments
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments
      operations:
      - name: listcommentsonpullrequest
        method: GET
        description: Atlassian List Comments on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcommentonpullrequest
        method: POST
        description: Atlassian Create Comment on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-comments-comment_i
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id}
      operations:
      - name: deletecommentonpullrequest
        method: DELETE
        description: Atlassian Delete Comment on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getcommentonpullrequest
        method: GET
        description: Atlassian Get Comment on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecommentonpullrequest
        method: PUT
        description: Atlassian Update Comment on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-commits
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/commits
      operations:
      - name: listcommitsonpullrequest
        method: GET
        description: Atlassian List Commits on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-decline
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/decline
      operations:
      - name: declinepullrequest
        method: POST
        description: Atlassian Decline Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-diff
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/diff
      operations:
      - name: listchangesinpullrequest
        method: GET
        description: Atlassian List Changes in Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-diffstat
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/diffstat
      operations:
      - name: getthediffstatforpullrequest
        method: GET
        description: Atlassian Get the Diff Stat for Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-merge
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/merge
      operations:
      - name: mergepullrequest
        method: POST
        description: Atlassian Merge Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: async
          in: query
          type: boolean
          description: Default value is false.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-merge-task-status-
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/merge/task-status/{task_id}
      operations:
      - name: getthemergetaskstatusforpullrequest
        method: GET
        description: Atlassian Get the Merge Task Status for Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-patch
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/patch
      operations:
      - name: getthepatchforpullrequest
        method: GET
        description: Atlassian Get the Patch for Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-request-changes
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/request-changes
      operations:
      - name: removechangerequestforpullrequest
        method: DELETE
        description: Atlassian Remove Change Request for Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: requestchangesforpullrequest
        method: POST
        description: Atlassian Request Changes for Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-statuses
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/statuses
      operations:
      - name: listcommitstatusesforpullrequest
        method: GET
        description: Atlassian List Commit Statuses for Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: Query string to narrow down the response as per
        - name: sort
          in: query
          type: string
          description: Field by which the results should be sorted as per
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-tasks
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/tasks
      operations:
      - name: listtasksonpullrequest
        method: GET
        description: Atlassian List Tasks on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: Query string to narrow down the response. See
        - name: sort
          in: query
          type: string
          description: Field by which the results should be sorted as per
        - name: pagelen
          in: query
          type: integer
          description: Current number of objects on the existing page.
      - name: createtaskonpullrequest
        method: POST
        description: Atlassian Create Task on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-pullrequests-pull_request_id-tasks-task_id
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/tasks/{task_id}
      operations:
      - name: deletetaskonpullrequest
        method: DELETE
        description: Atlassian Delete Task on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: gettaskonpullrequest
        method: GET
        description: Atlassian Get Task on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatetaskonpullrequest
        method: PUT
        description: Atlassian Update Task on Pull Request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-pullrequests-pullrequest_id-properties-app_key-
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pullrequest_id}/properties/{app_key}/{property_name}
      operations:
      - name: updatepullrequestapplicationproperty
        method: PUT
        description: Atlassian Update Pull Request Application Property
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: The repository container; either the workspace slug or the UUID in curly braces.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: pullrequest_id
          in: path
          type: string
          description: The pull request ID.
          required: true
        - name: app_key
          in: path
          type: string
          description: The key of the Connect app.
          required: true
        - name: property_name
          in: path
          type: string
          description: The name of the property.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deletepullrequestapplicationproperty
        method: DELETE
        description: Atlassian Delete Pull Request Application Property
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: The repository container; either the workspace slug or the UUID in curly braces.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: pullrequest_id
          in: path
          type: string
          description: The pull request ID.
          required: true
        - name: app_key
          in: path
          type: string
          description: The key of the Connect app.
          required: true
        - name: property_name
          in: path
          type: string
          description: The name of the property.
          required: true
      - name: getpullrequestapplicationproperty
        method: GET
        description: Atlassian Get Pull Request Application Property
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          description: The repository container; either the workspace slug or the UUID in curly braces.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: pullrequest_id
          in: path
          type: string
          description: The pull request ID.
          required: true
        - name: app_key
          in: path
          type: string
          description: The key of the Connect app.
          required: true
        - name: property_name
          in: path
          type: string
          description: The name of the property.
          required: true
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-repositories-pull-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — Pull. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/pullrequests
      name: repositories-workspace-repo-slug-commit-commit-pullrequests
      description: REST surface for repositories-workspace-repo_slug-commit-commit-pullrequests.
      operations:
      - method: GET
        name: listpullrequeststhatcontaincommit
        description: Atlassian List Pull Requests That Contain Commit
        call: bitbucket-repositories-pull.listpullrequeststhatcontaincommit
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          page: rest.page
          pagelen: rest.pagelen
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests
      name: repositories-workspace-repo-slug-pullrequests
      description: REST surface for repositories-workspace-repo_slug-pullrequests.
      operations:
      - method: GET
        name: listpullrequests
        description: Atlassian List Pull Requests
        call: bitbucket-repositories-pull.listpullrequests
        with:
          state: rest.state
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createpullrequest
        description: Atlassian Create Pull Request
        call: bitbucket-repositories-pull.createpullrequest
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/activity
      name: repositories-workspace-repo-slug-pullrequests-activity
      description: REST surface for repositories-workspace-repo_slug-pullrequests-activity.
      operations:
      - method: GET
        name: listpullrequestactivitylog
        description: Atlassian List Pull Request Activity Log
        call: bitbucket-repositories-pull.listpullrequestactivitylog
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id.
      operations:
      - method: GET
        name: getpullrequest
        description: Atlassian Get Pull Request
        call: bitbucket-repositories-pull.getpullrequest
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatepullrequest
        description: Atlassian Update Pull Request
        call: bitbucket-repositories-pull.updatepullrequest
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/activity
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-activity
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-activity.
      operations:
      - method: GET
        name: listpullrequestactivitylog
        description: Atlassian List Pull Request Activity Log
        call: bitbucket-repositories-pull.listpullrequestactivitylog
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/approve
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-approve
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-approve.
      operations:
      - method: DELETE
        name: unapprovepullrequest
        description: Atlassian Unapprove Pull Request
        call: bitbucket-repositories-pull.unapprovepullrequest
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: approvepullrequest
        description: Atlassian Approve Pull Request
        call: bitbucket-repositories-pull.approvepullrequest
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-comments
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-comments.
      operations:
      - method: GET
        name: listcommentsonpullrequest
        description: Atlassian List Comments on Pull Request
        call: bitbucket-repositories-pull.listcommentsonpullrequest
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcommentonpullrequest
        description: Atlassian Create Comment on Pull Request
        call: bitbucket-repositories-pull.createcommentonpullrequest
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-id}
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-comments-comment-i
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-comments-comment_i.
      operations:
      - method: DELETE
        name: deletecommentonpullrequest
        description: Atlassian Delete Comment on Pull Request
        call: bitbucket-repositories-pull.deletecommentonpullrequest
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getcommentonpullrequest
        description: Atlassian Get Comment on Pull Request
        call: bitbucket-repositories-pull.getcommentonpullrequest
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecommentonpullrequest
        description: Atlassian Update Comment on Pull Request
        call: bitbucket-repositories-pull.updatecommentonpullrequest
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/commits
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-commits
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-commits.
      operations:
      - method: GET
        name: listcommitsonpullrequest
        description: Atlassian List Commits on Pull Request
        call: bitbucket-repositories-pull.listcommitsonpullrequest
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/decline
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-decline
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-decline.
      operations:
      - method: POST
        name: declinepullrequest
        description: Atlassian Decline Pull Request
        call: bitbucket-repositories-pull.declinepullrequest
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/diff
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-diff
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-diff.
      operations:
      - method: GET
        name: listchangesinpullrequest
        description: Atlassian List Changes in Pull Request
        call: bitbucket-repositories-pull.listchangesinpullrequest
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/diffstat
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-diffstat
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-diffstat.
      operations:
      - method: GET
        name: getthediffstatforpullrequest
        description: Atlassian Get the Diff Stat for Pull Request
        call: bitbucket-repositories-pull.getthediffstatforpullrequest
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/merge
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-merge
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-merge.
      operations:
      - method: POST
        name: mergepullrequest
        description: Atlassian Merge Pull Request
        call: bitbucket-repositories-pull.mergepullrequest
        with:
          async: rest.async
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/merge/task-status/{task-id}
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-merge-task-status
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-merge-task-status-.
      operations:
      - method: GET
        name: getthemergetaskstatusforpullrequest
        description: Atlassian Get the Merge Task Status for Pull Request
        call: bitbucket-repositories-pull.getthemergetaskstatusforpullrequest
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/patch
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-patch
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-patch.
      operations:
      - method: GET
        name: getthepatchforpullrequest
        description: Atlassian Get the Patch for Pull Request
        call: bitbucket-repositories-pull.getthepatchforpullrequest
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/request-changes
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-request-changes
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-request-changes.
      operations:
      - method: DELETE
        name: removechangerequestforpullrequest
        description: Atlassian Remove Change Request for Pull Request
        call: bitbucket-repositories-pull.removechangerequestforpullrequest
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: requestchangesforpullrequest
        description: Atlassian Request Changes for Pull Request
        call: bitbucket-repositories-pull.requestchangesforpullrequest
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/statuses
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-statuses
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-statuses.
      operations:
      - method: GET
        name: listcommitstatusesforpullrequest
        description: Atlassian List Commit Statuses for Pull Request
        call: bitbucket-repositories-pull.listcommitstatusesforpullrequest
        with:
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/tasks
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-tasks
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-tasks.
      operations:
      - method: GET
        name: listtasksonpullrequest
        description: Atlassian List Tasks on Pull Request
        call: bitbucket-repositories-pull.listtasksonpullrequest
        with:
          q: rest.q
          sort: rest.sort
          pagelen: rest.pagelen
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createtaskonpullrequest
        description: Atlassian Create Task on Pull Request
        call: bitbucket-repositories-pull.createtaskonpullrequest
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/tasks/{task-id}
      name: repositories-workspace-repo-slug-pullrequests-pull-request-id-tasks-task-id
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pull_request_id-tasks-task_id.
      operations:
      - method: DELETE
        name: deletetaskonpullrequest
        description: Atlassian Delete Task on Pull Request
        call: bitbucket-repositories-pull.deletetaskonpullrequest
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: gettaskonpullrequest
        description: Atlassian Get Task on Pull Request
        call: bitbucket-repositories-pull.gettaskonpullrequest
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatetaskonpullrequest
        description: Atlassian Update Task on Pull Request
        call: bitbucket-repositories-pull.updatetaskonpullrequest
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/pullrequests/{pullrequest-id}/properties/{app-key}/{property-name}
      name: repositories-workspace-repo-slug-pullrequests-pullrequest-id-properties-app-key
      description: REST surface for repositories-workspace-repo_slug-pullrequests-pullrequest_id-properties-app_key-.
      operations:
      - method: PUT
        name: updatepullrequestapplicationproperty
        description: Atlassian Update Pull Request Application Property
        call: bitbucket-repositories-pull.updatepullrequestapplicationproperty
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          pullrequest_id: rest.pullrequest_id
          app_key: rest.app_key
          property_name: rest.property_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletepullrequestapplicationproperty
        description: Atlassian Delete Pull Request Appl

# --- truncated at 32 KB (44 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/capabilities/bitbucket-repositories-pull.yaml