Atlassian · Capability

Atlassian Bit Bucket Repositories API — Update

Atlassian Bit Bucket Repositories API — Update. 27 operations. Lead operation: Atlassian Update Repository. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianUpdate

What You Can Do

PUT
Updaterepository — Atlassian Update Repository
/v1/repositories/{workspace}/{repo-slug}
PUT
Updatebranchrestrictionrule — Atlassian Update Branch Restriction Rule
/v1/repositories/{workspace}/{repo-slug}/branch-restrictions/{id}
PUT
Updatethebranchingmodelconfigforrepository — Atlassian Update the Branching Model Config for Repository
/v1/repositories/{workspace}/{repo-slug}/branching-model/settings
PUT
Updatecommitcomment — Atlassian Update Commit Comment
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments/{comment-id}
PUT
Updatecommitapplicationproperty — Atlassian Update Commit Application Property
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/properties/{app-key}/{property-name}
PUT
Createorupdatereport — Atlassian Create or Update Report
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}
POST
Bulkcreateorupdateannotations — Atlassian Bulk Create or Update Annotations
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}/annotations
PUT
Createorupdateanannotation — Atlassian Create or Update an Annotation
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}/annotations/{annotationid}
PUT
Updatebuildstatusforcommit — Atlassian Update Build Status for Commit
/v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses/build/{key}
PUT
Updaterepositorydeploykey — Atlassian Update Repository Deploy Key
/v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
PUT
Updatevariableforanenvironment — Atlassian Update Variable for an Environment
/v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables/{variable-uuid}
POST
Updateanenvironment — Atlassian Update an Environment
/v1/repositories/{workspace}/{repo-slug}/environments/{environment-uuid}/changes
PUT
Updatewebhookforrepository — Atlassian Update Webhook for Repository
/v1/repositories/{workspace}/{repo-slug}/hooks/{uid}
PUT
Updatecommentonanissue — Atlassian Update Comment on an Issue
/v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}/comments/{comment-id}
PUT
Updateanexplicitgrouppermissionforrepository — Atlassian Update an Explicit Group Permission for Repository
/v1/repositories/{workspace}/{repo-slug}/permissions-config/groups/{group-slug}
PUT
Updateanexplicituserpermissionforrepository — Atlassian Update an Explicit User Permission for Repository
/v1/repositories/{workspace}/{repo-slug}/permissions-config/users/{selected-user-id}
PUT
Updateconfiguration — Atlassian Update Configuration
/v1/repositories/{workspace}/{repo-slug}/pipelines-config
PUT
Updatethenextbuildnumber — Atlassian Update the Next Build Number
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/build-number
PUT
Updateschedule — Atlassian Update Schedule
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/schedules/{schedule-uuid}
PUT
Updatesshkeypair — Atlassian Update Ssh Key Pair
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/key-pair
PUT
Updateknownhost — Atlassian Update Known Host
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/ssh/known-hosts/{known-host-uuid}
PUT
Updatevariableforrepository — Atlassian Update Variable for Repository
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/variables/{variable-uuid}
PUT
Updaterepositoryapplicationproperty — Atlassian Update Repository Application Property
/v1/repositories/{workspace}/{repo-slug}/properties/{app-key}/{property-name}
PUT
Updatepullrequest — Atlassian Update Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}
PUT
Updatecommentonpullrequest — Atlassian Update Comment on Pull Request
/v1/repositories/{workspace}/{repo-slug}/pullrequests/{pull-request-id}/comments/{comment-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}

MCP Tools

atlassian-update-repository

Atlassian Update Repository

idempotent
atlassian-update-branch-restriction-rule

Atlassian Update Branch Restriction Rule

idempotent
atlassian-update-branching-model-config

Atlassian Update the Branching Model Config for Repository

idempotent
atlassian-update-commit-comment

Atlassian Update Commit Comment

idempotent
atlassian-update-commit-application-property

Atlassian Update Commit Application Property

idempotent
atlassian-create-update-report

Atlassian Create or Update Report

idempotent
atlassian-bulk-create-update-annotations

Atlassian Bulk Create or Update Annotations

atlassian-create-update-annotation

Atlassian Create or Update an Annotation

idempotent
atlassian-update-build-status-commit

Atlassian Update Build Status for Commit

idempotent
atlassian-update-repository-deploy-key

Atlassian Update Repository Deploy Key

idempotent
atlassian-update-variable-environment

Atlassian Update Variable for an Environment

idempotent
atlassian-update-environment

Atlassian Update an Environment

atlassian-update-webhook-repository

Atlassian Update Webhook for Repository

idempotent
atlassian-update-comment-issue

Atlassian Update Comment on an Issue

idempotent
atlassian-update-explicit-group-permission

Atlassian Update an Explicit Group Permission for Repository

idempotent
atlassian-update-explicit-user-permission

Atlassian Update an Explicit User Permission for Repository

idempotent
atlassian-update-configuration

Atlassian Update Configuration

idempotent
atlassian-update-next-build-number

Atlassian Update the Next Build Number

idempotent
atlassian-update-schedule

Atlassian Update Schedule

idempotent
atlassian-update-ssh-key-pair

Atlassian Update Ssh Key Pair

idempotent
atlassian-update-known-host

Atlassian Update Known Host

idempotent
atlassian-update-variable-repository

Atlassian Update Variable for Repository

idempotent
atlassian-update-repository-application-property

Atlassian Update Repository Application Property

idempotent
atlassian-update-pull-request

Atlassian Update Pull Request

idempotent
atlassian-update-comment-pull-request

Atlassian Update Comment on Pull Request

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

Capability Spec

bitbucket-repositories-update.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Update
  description: 'Atlassian Bit Bucket Repositories API — Update. 27 operations. Lead operation: Atlassian Update Repository.
    Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Update
  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-update
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Update business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace-repo_slug
      path: /repositories/{workspace}/{repo_slug}
      operations:
      - name: updaterepository
        method: PUT
        description: Atlassian Update Repository
        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-branch-restrictions-id
      path: /repositories/{workspace}/{repo_slug}/branch-restrictions/{id}
      operations:
      - name: updatebranchrestrictionrule
        method: PUT
        description: Atlassian Update Branch Restriction Rule
        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-branching-model-settings
      path: /repositories/{workspace}/{repo_slug}/branching-model/settings
      operations:
      - name: updatethebranchingmodelconfigforrepository
        method: PUT
        description: Atlassian Update the Branching Model Config for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-commit-commit-comments-comment_id
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/comments/{comment_id}
      operations:
      - name: updatecommitcomment
        method: PUT
        description: Atlassian Update Commit Comment
        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-commit-commit-properties-app_key-property_name
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/properties/{app_key}/{property_name}
      operations:
      - name: updatecommitapplicationproperty
        method: PUT
        description: Atlassian Update Commit 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: commit
          in: path
          type: string
          description: The commit.
          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: repositories-workspace-repo_slug-commit-commit-reports-reportId
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId}
      operations:
      - name: createorupdatereport
        method: PUT
        description: Atlassian Create or Update Report
        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, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: commit
          in: path
          type: string
          description: The commit the report belongs to.
          required: true
        - name: reportId
          in: path
          type: string
          description: Either the uuid or external-id of the report.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-commit-commit-reports-reportId-annotations
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId}/annotations
      operations:
      - name: bulkcreateorupdateannotations
        method: POST
        description: Atlassian Bulk Create or Update Annotations
        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, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: commit
          in: path
          type: string
          description: The commit for which to retrieve reports.
          required: true
        - name: reportId
          in: path
          type: string
          description: Uuid or external-if of the report for which to get annotations for.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-commit-commit-reports-reportId-annotations-anno
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/reports/{reportId}/annotations/{annotationId}
      operations:
      - name: createorupdateanannotation
        method: PUT
        description: Atlassian Create or Update an Annotation
        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, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: commit
          in: path
          type: string
          description: The commit the report belongs to.
          required: true
        - name: reportId
          in: path
          type: string
          description: Either the uuid or external-id of the report.
          required: true
        - name: annotationId
          in: path
          type: string
          description: Either the uuid or external-id of the annotation.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-commit-commit-statuses-build-key
      path: /repositories/{workspace}/{repo_slug}/commit/{commit}/statuses/build/{key}
      operations:
      - name: updatebuildstatusforcommit
        method: PUT
        description: Atlassian Update Build Status for Commit
        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-deploy-keys-key_id
      path: /repositories/{workspace}/{repo_slug}/deploy-keys/{key_id}
      operations:
      - name: updaterepositorydeploykey
        method: PUT
        description: Atlassian Update Repository Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-deployments_config-environments-environment_uui
      path: /repositories/{workspace}/{repo_slug}/deployments_config/environments/{environment_uuid}/variables/{variable_uuid}
      operations:
      - name: updatevariableforanenvironment
        method: PUT
        description: Atlassian Update Variable for an Environment
        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, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: environment_uuid
          in: path
          type: string
          description: The environment.
          required: true
        - name: variable_uuid
          in: path
          type: string
          description: The UUID of the variable to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-environments-environment_uuid-changes
      path: /repositories/{workspace}/{repo_slug}/environments/{environment_uuid}/changes
      operations:
      - name: updateanenvironment
        method: POST
        description: Atlassian Update an Environment
        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, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: environment_uuid
          in: path
          type: string
          description: The environment UUID.
          required: true
    - name: repositories-workspace-repo_slug-hooks-uid
      path: /repositories/{workspace}/{repo_slug}/hooks/{uid}
      operations:
      - name: updatewebhookforrepository
        method: PUT
        description: Atlassian Update Webhook for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-issues-issue_id-comments-comment_id
      path: /repositories/{workspace}/{repo_slug}/issues/{issue_id}/comments/{comment_id}
      operations:
      - name: updatecommentonanissue
        method: PUT
        description: Atlassian Update Comment on an Issue
        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-permissions-config-groups-group_slug
      path: /repositories/{workspace}/{repo_slug}/permissions-config/groups/{group_slug}
      operations:
      - name: updateanexplicitgrouppermissionforrepository
        method: PUT
        description: Atlassian Update an Explicit Group Permission for Repository
        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-permissions-config-users-selected_user_id
      path: /repositories/{workspace}/{repo_slug}/permissions-config/users/{selected_user_id}
      operations:
      - name: updateanexplicituserpermissionforrepository
        method: PUT
        description: Atlassian Update an Explicit User Permission for Repository
        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-pipelines_config
      path: /repositories/{workspace}/{repo_slug}/pipelines_config
      operations:
      - name: updateconfiguration
        method: PUT
        description: Atlassian Update Configuration
        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, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-pipelines_config-build_number
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/build_number
      operations:
      - name: updatethenextbuildnumber
        method: PUT
        description: Atlassian Update the Next Build Number
        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, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-pipelines_config-schedules-schedule_uuid
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/schedules/{schedule_uuid}
      operations:
      - name: updateschedule
        method: PUT
        description: Atlassian Update Schedule
        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, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: schedule_uuid
          in: path
          type: string
          description: The uuid of the schedule.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-pipelines_config-ssh-key_pair
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/key_pair
      operations:
      - name: updatesshkeypair
        method: PUT
        description: Atlassian Update Ssh Key Pair
        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, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-pipelines_config-ssh-known_hosts-known_host_uui
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid}
      operations:
      - name: updateknownhost
        method: PUT
        description: Atlassian Update Known Host
        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, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: known_host_uuid
          in: path
          type: string
          description: The UUID of the known host to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-pipelines_config-variables-variable_uuid
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/variables/{variable_uuid}
      operations:
      - name: updatevariableforrepository
        method: PUT
        description: Atlassian Update Variable for Repository
        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, for example
            `{workspace UUID}`.
          required: true
        - name: repo_slug
          in: path
          type: string
          description: The repository.
          required: true
        - name: variable_uuid
          in: path
          type: string
          description: The UUID of the variable to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repositories-workspace-repo_slug-properties-app_key-property_name
      path: /repositories/{workspace}/{repo_slug}/properties/{app_key}/{property_name}
      operations:
      - name: updaterepositoryapplicationproperty
        method: PUT
        description: Atlassian Update Repository 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: 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: repositories-workspace-repo_slug-pullrequests-pull_request_id
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}
      operations:
      - 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-comments-comment_i
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id}
      operations:
      - 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-tasks-task_id
      path: /repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/tasks/{task_id}
      operations:
      - 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
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-repositories-update-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — Update. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}/{repo-slug}
      name: repositories-workspace-repo-slug
      description: REST surface for repositories-workspace-repo_slug.
      operations:
      - method: PUT
        name: updaterepository
        description: Atlassian Update Repository
        call: bitbucket-repositories-update.updaterepository
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/branch-restrictions/{id}
      name: repositories-workspace-repo-slug-branch-restrictions-id
      description: REST surface for repositories-workspace-repo_slug-branch-restrictions-id.
      operations:
      - method: PUT
        name: updatebranchrestrictionrule
        description: Atlassian Update Branch Restriction Rule
        call: bitbucket-repositories-update.updatebranchrestrictionrule
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/branching-model/settings
      name: repositories-workspace-repo-slug-branching-model-settings
      description: REST surface for repositories-workspace-repo_slug-branching-model-settings.
      operations:
      - method: PUT
        name: updatethebranchingmodelconfigforrepository
        description: Atlassian Update the Branching Model Config for Repository
        call: bitbucket-repositories-update.updatethebranchingmodelconfigforrepository
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/comments/{comment-id}
      name: repositories-workspace-repo-slug-commit-commit-comments-comment-id
      description: REST surface for repositories-workspace-repo_slug-commit-commit-comments-comment_id.
      operations:
      - method: PUT
        name: updatecommitcomment
        description: Atlassian Update Commit Comment
        call: bitbucket-repositories-update.updatecommitcomment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/properties/{app-key}/{property-name}
      name: repositories-workspace-repo-slug-commit-commit-properties-app-key-property-name
      description: REST surface for repositories-workspace-repo_slug-commit-commit-properties-app_key-property_name.
      operations:
      - method: PUT
        name: updatecommitapplicationproperty
        description: Atlassian Update Commit Application Property
        call: bitbucket-repositories-update.updatecommitapplicationproperty
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          app_key: rest.app_key
          property_name: rest.property_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}
      name: repositories-workspace-repo-slug-commit-commit-reports-reportid
      description: REST surface for repositories-workspace-repo_slug-commit-commit-reports-reportId.
      operations:
      - method: PUT
        name: createorupdatereport
        description: Atlassian Create or Update Report
        call: bitbucket-repositories-update.createorupdatereport
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          reportId: rest.reportId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}/annotations
      name: repositories-workspace-repo-slug-commit-commit-reports-reportid-annotations
      description: REST surface for repositories-workspace-repo_slug-commit-commit-reports-reportId-annotations.
      operations:
      - method: POST
        name: bulkcreateorupdateannotations
        description: Atlassian Bulk Create or Update Annotations
        call: bitbucket-repositories-update.bulkcreateorupdateannotations
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          reportId: rest.reportId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/reports/{reportid}/annotations/{annotationid}
      name: repositories-workspace-repo-slug-commit-commit-reports-reportid-annotations-anno
      description: REST surface for repositories-workspace-repo_slug-commit-commit-reports-reportId-annotations-anno.
      operations:
      - method: PUT
        name: createorupdateanannotation
        description: Atlassian Create or Update an Annotation
        call: bitbucket-repositories-update.createorupdateanannotation
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          commit: rest.commit
          reportId: rest.reportId
          annotationId: rest.annotationId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/commit/{commit}/statuses/build/{key}
      name: repositories-workspace-repo-slug-commit-commit-statuses-build-key
      description: REST surface for repositories-workspace-repo_slug-commit-commit-statuses-build-key.
      operations:
      - method: PUT
        name: updatebuildstatusforcommit
        description: Atlassian Update Build Status for Commit
        call: bitbucket-repositories-update.updatebuildstatusforcommit
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
      name: repositories-workspace-repo-slug-deploy-keys-key-id
      description: REST surface for repositories-workspace-repo_slug-deploy-keys-key_id.
      operations:
      - method: PUT
        name: updaterepositorydeploykey
        description: Atlassian Update Repository Deploy Key
        call: bitbucket-repositories-update.updaterepositorydeploykey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/deployments-config/environments/{environment-uuid}/variables/{variable-uuid}
      name: repositories-workspace-repo-slug-deployments-config-environments-environment-uui
      description: REST surface for repositories-workspace-repo_slug-deployments_config-environments-environment_uui.
      operations:
      - method: PUT
        name: updatevariableforanenvironment
        description: Atlassian Update Variable for an Environment
        call: bitbucket-repositories-update.updatevariableforanenvironment
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          environment_uuid: rest.environment_uuid
          variable_uuid: rest.variable_uuid
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/environments/{environment-uuid}/changes
      name: repositories-workspace-repo-slug-environments-environment-uuid-changes
      description: REST surface for repositories-workspace-repo_slug-environments-environment_uuid-changes.
      operations:
      - method: POST
        name: updateanenvironment
        description: Atlassian Update an Environment
        call: bitbucket-repositories-update.updateanenvironment
        with:
          workspace: rest.workspace
          repo_slug: rest.repo_slug
          environment_uuid: rest.environment_uuid
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/hooks/{uid}
      name: repositories-workspace-repo-slug-hooks-uid
      description: REST surf

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