Atlassian · Capability

Atlassian Bit Bucket Repositories API — Repositories

Atlassian Bit Bucket Repositories API — Repositories. 43 operations. Lead operation: Atlassian List Repositories in Workspace. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianRepositories

What You Can Do

GET
Listrepositoriesinworkspace — Atlassian List Repositories in Workspace
/v1/repositories/{workspace}
DELETE
Deleterepository — Atlassian Delete Repository
/v1/repositories/{workspace}/{repo-slug}
GET
Getrepository — Atlassian Get Repository
/v1/repositories/{workspace}/{repo-slug}
POST
Createrepository — Atlassian Create Repository
/v1/repositories/{workspace}/{repo-slug}
PUT
Updaterepository — Atlassian Update Repository
/v1/repositories/{workspace}/{repo-slug}
GET
Getthebranchingmodelforrepository — Atlassian Get the Branching Model for Repository
/v1/repositories/{workspace}/{repo-slug}/branching-model
GET
Getthebranchingmodelconfigforrepository — Atlassian Get the Branching Model Config for Repository
/v1/repositories/{workspace}/{repo-slug}/branching-model/settings
PUT
Updatethebranchingmodelconfigforrepository — Atlassian Update the Branching Model Config for Repository
/v1/repositories/{workspace}/{repo-slug}/branching-model/settings
DELETE
Removeuserfromthedefaultreviewers — Atlassian Remove User From the Default Reviewers
/v1/repositories/{workspace}/{repo-slug}/default-reviewers/{target-username}
GET
Listrepositorydeploykeys — Atlassian List Repository Deploy Keys
/v1/repositories/{workspace}/{repo-slug}/deploy-keys
POST
Addrepositorydeploykey — Atlassian Add Repository Deploy Key
/v1/repositories/{workspace}/{repo-slug}/deploy-keys
DELETE
Deleterepositorydeploykey — Atlassian Delete Repository Deploy Key
/v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
GET
Getrepositorydeploykey — Atlassian Get Repository Deploy Key
/v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
PUT
Updaterepositorydeploykey — Atlassian Update Repository Deploy Key
/v1/repositories/{workspace}/{repo-slug}/deploy-keys/{key-id}
GET
Gettheeffectiveorcurrentlyappliedbranchingmodelforrepository — Atlassian Get the Effective, or Currently Applied, Branching Model for Repository
/v1/repositories/{workspace}/{repo-slug}/effective-branching-model
GET
Listrepositoryforks — Atlassian List Repository Forks
/v1/repositories/{workspace}/{repo-slug}/forks
POST
Forkrepository — Atlassian Fork Repository
/v1/repositories/{workspace}/{repo-slug}/forks
GET
Listwebhooksforrepository — Atlassian List Webhooks for Repository
/v1/repositories/{workspace}/{repo-slug}/hooks
POST
Createwebhookforrepository — Atlassian Create Webhook for Repository
/v1/repositories/{workspace}/{repo-slug}/hooks
DELETE
Deletewebhookforrepository — Atlassian Delete Webhook for Repository
/v1/repositories/{workspace}/{repo-slug}/hooks/{uid}
GET
Getwebhookforrepository — Atlassian Get Webhook for Repository
/v1/repositories/{workspace}/{repo-slug}/hooks/{uid}
PUT
Updatewebhookforrepository — Atlassian Update Webhook for Repository
/v1/repositories/{workspace}/{repo-slug}/hooks/{uid}
PUT
Updateanissue — Atlassian Update an Issue
/v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}
GET
Retrievetheinheritancestateforrepositorysettings — Atlassian Retrieve the Inheritance State for Repository Settings
/v1/repositories/{workspace}/{repo-slug}/override-settings
PUT
Settheinheritancestateforrepositorysettings — Atlassian Set the Inheritance State for Repository Settings
/v1/repositories/{workspace}/{repo-slug}/override-settings
GET
Listexplicitgrouppermissionsforrepository — Atlassian List Explicit Group Permissions for Repository
/v1/repositories/{workspace}/{repo-slug}/permissions-config/groups
DELETE
Deleteanexplicitgrouppermissionforrepository — Atlassian Delete an Explicit Group Permission for Repository
/v1/repositories/{workspace}/{repo-slug}/permissions-config/groups/{group-slug}
GET
Getanexplicitgrouppermissionforrepository — Atlassian Get an Explicit Group Permission for Repository
/v1/repositories/{workspace}/{repo-slug}/permissions-config/groups/{group-slug}
PUT
Updateanexplicitgrouppermissionforrepository — Atlassian Update an Explicit Group Permission for Repository
/v1/repositories/{workspace}/{repo-slug}/permissions-config/groups/{group-slug}
GET
Listexplicituserpermissionsforrepository — Atlassian List Explicit User Permissions for Repository
/v1/repositories/{workspace}/{repo-slug}/permissions-config/users
DELETE
Deleteanexplicituserpermissionforrepository — Atlassian Delete an Explicit User Permission for Repository
/v1/repositories/{workspace}/{repo-slug}/permissions-config/users/{selected-user-id}
GET
Getanexplicituserpermissionforrepository — Atlassian Get an Explicit User Permission for Repository
/v1/repositories/{workspace}/{repo-slug}/permissions-config/users/{selected-user-id}
PUT
Updateanexplicituserpermissionforrepository — Atlassian Update an Explicit User Permission for Repository
/v1/repositories/{workspace}/{repo-slug}/permissions-config/users/{selected-user-id}
GET
Listvariablesforrepository — Atlassian List Variables for Repository
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/variables
POST
Createvariableforrepository — Atlassian Create Variable for Repository
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/variables
GET
Getvariableforrepository — Atlassian Get Variable for Repository
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/variables/{variable-uuid}
PUT
Updatevariableforrepository — Atlassian Update Variable for Repository
/v1/repositories/{workspace}/{repo-slug}/pipelines-config/variables/{variable-uuid}
DELETE
Deletevariableforrepository — Atlassian Delete 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}
DELETE
Deleterepositoryapplicationproperty — Atlassian Delete Repository Application Property
/v1/repositories/{workspace}/{repo-slug}/properties/{app-key}/{property-name}
GET
Getrepositoryapplicationproperty — Atlassian Get Repository Application Property
/v1/repositories/{workspace}/{repo-slug}/properties/{app-key}/{property-name}
GET
Listrepositorieswatchers — Atlassian List Repositories Watchers
/v1/repositories/{workspace}/{repo-slug}/watchers
GET
Listrepositorypermissionsforworkspace — Atlassian List Repository Permissions for Workspace
/v1/workspaces/{workspace}/permissions/repositories/{repo-slug}

MCP Tools

atlassian-list-repositories-workspace

Atlassian List Repositories in Workspace

read-only idempotent
atlassian-delete-repository

Atlassian Delete Repository

idempotent
atlassian-get-repository

Atlassian Get Repository

read-only idempotent
atlassian-create-repository

Atlassian Create Repository

atlassian-update-repository

Atlassian Update Repository

idempotent
atlassian-get-branching-model-repository

Atlassian Get the Branching Model for Repository

read-only idempotent
atlassian-get-branching-model-config

Atlassian Get the Branching Model Config for Repository

read-only idempotent
atlassian-update-branching-model-config

Atlassian Update the Branching Model Config for Repository

idempotent
atlassian-remove-user-default-reviewers

Atlassian Remove User From the Default Reviewers

idempotent
atlassian-list-repository-deploy-keys

Atlassian List Repository Deploy Keys

read-only idempotent
atlassian-add-repository-deploy-key

Atlassian Add Repository Deploy Key

atlassian-delete-repository-deploy-key

Atlassian Delete Repository Deploy Key

idempotent
atlassian-get-repository-deploy-key

Atlassian Get Repository Deploy Key

read-only idempotent
atlassian-update-repository-deploy-key

Atlassian Update Repository Deploy Key

idempotent
atlassian-get-effective-currently-applied

Atlassian Get the Effective, or Currently Applied, Branching Model for Repository

read-only idempotent
atlassian-list-repository-forks

Atlassian List Repository Forks

read-only idempotent
atlassian-fork-repository

Atlassian Fork Repository

atlassian-list-webhooks-repository

Atlassian List Webhooks for Repository

read-only idempotent
atlassian-create-webhook-repository

Atlassian Create Webhook for Repository

atlassian-delete-webhook-repository

Atlassian Delete Webhook for Repository

idempotent
atlassian-get-webhook-repository

Atlassian Get Webhook for Repository

read-only idempotent
atlassian-update-webhook-repository

Atlassian Update Webhook for Repository

idempotent
atlassian-update-issue

Atlassian Update an Issue

idempotent
atlassian-retrieve-inheritance-state-repository

Atlassian Retrieve the Inheritance State for Repository Settings

read-only idempotent
atlassian-set-inheritance-state-repository

Atlassian Set the Inheritance State for Repository Settings

idempotent
atlassian-list-explicit-group-permissions

Atlassian List Explicit Group Permissions for Repository

read-only idempotent
atlassian-delete-explicit-group-permission

Atlassian Delete an Explicit Group Permission for Repository

idempotent
atlassian-get-explicit-group-permission

Atlassian Get an Explicit Group Permission for Repository

read-only idempotent
atlassian-update-explicit-group-permission

Atlassian Update an Explicit Group Permission for Repository

idempotent
atlassian-list-explicit-user-permissions

Atlassian List Explicit User Permissions for Repository

read-only idempotent
atlassian-delete-explicit-user-permission

Atlassian Delete an Explicit User Permission for Repository

idempotent
atlassian-get-explicit-user-permission

Atlassian Get an Explicit User Permission for Repository

read-only idempotent
atlassian-update-explicit-user-permission

Atlassian Update an Explicit User Permission for Repository

idempotent
atlassian-list-variables-repository

Atlassian List Variables for Repository

read-only idempotent
atlassian-create-variable-repository

Atlassian Create Variable for Repository

atlassian-get-variable-repository

Atlassian Get Variable for Repository

read-only idempotent
atlassian-update-variable-repository

Atlassian Update Variable for Repository

idempotent
atlassian-delete-variable-repository

Atlassian Delete Variable for Repository

idempotent
atlassian-update-repository-application-property

Atlassian Update Repository Application Property

idempotent
atlassian-delete-repository-application-property

Atlassian Delete Repository Application Property

idempotent
atlassian-get-repository-application-property

Atlassian Get Repository Application Property

read-only idempotent
atlassian-list-repositories-watchers

Atlassian List Repositories Watchers

read-only idempotent
atlassian-list-repository-permissions-workspace

Atlassian List Repository Permissions for Workspace

read-only idempotent

Capability Spec

bitbucket-repositories-repositories.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Repositories API — Repositories
  description: 'Atlassian Bit Bucket Repositories API — Repositories. 43 operations. Lead operation: Atlassian List Repositories
    in Workspace. Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Repositories
  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-repositories
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Repositories API — Repositories business capability. Self-contained, no shared references.
    resources:
    - name: repositories-workspace
      path: /repositories/{workspace}
      operations:
      - name: listrepositoriesinworkspace
        method: GET
        description: Atlassian List Repositories in Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: role
          in: query
          type: string
          description: Filters the result based on the authenticated user's role on each repository.
        - name: q
          in: query
          type: string
          description: Query string to narrow down the response as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering).
        - name: sort
          in: query
          type: string
          description: Field by which the results should be sorted as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering).
    - name: repositories-workspace-repo_slug
      path: /repositories/{workspace}/{repo_slug}
      operations:
      - name: deleterepository
        method: DELETE
        description: Atlassian Delete Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: redirect_to
          in: query
          type: string
          description: If a repository has been moved to a new location, use this parameter to
      - name: getrepository
        method: GET
        description: Atlassian Get Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createrepository
        method: POST
        description: Atlassian Create Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - 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-branching-model
      path: /repositories/{workspace}/{repo_slug}/branching-model
      operations:
      - name: getthebranchingmodelforrepository
        method: GET
        description: Atlassian Get the Branching Model for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-branching-model-settings
      path: /repositories/{workspace}/{repo_slug}/branching-model/settings
      operations:
      - name: getthebranchingmodelconfigforrepository
        method: GET
        description: Atlassian Get the Branching Model Config for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - 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-default-reviewers-target_username
      path: /repositories/{workspace}/{repo_slug}/default-reviewers/{target_username}
      operations:
      - name: removeuserfromthedefaultreviewers
        method: DELETE
        description: Atlassian Remove User From the Default Reviewers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-deploy-keys
      path: /repositories/{workspace}/{repo_slug}/deploy-keys
      operations:
      - name: listrepositorydeploykeys
        method: GET
        description: Atlassian List Repository Deploy Keys
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addrepositorydeploykey
        method: POST
        description: Atlassian Add Repository Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-deploy-keys-key_id
      path: /repositories/{workspace}/{repo_slug}/deploy-keys/{key_id}
      operations:
      - name: deleterepositorydeploykey
        method: DELETE
        description: Atlassian Delete Repository Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getrepositorydeploykey
        method: GET
        description: Atlassian Get Repository Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updaterepositorydeploykey
        method: PUT
        description: Atlassian Update Repository Deploy Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-effective-branching-model
      path: /repositories/{workspace}/{repo_slug}/effective-branching-model
      operations:
      - name: gettheeffectiveorcurrentlyappliedbranchingmodelforrepository
        method: GET
        description: Atlassian Get the Effective, or Currently Applied, Branching Model for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-forks
      path: /repositories/{workspace}/{repo_slug}/forks
      operations:
      - name: listrepositoryforks
        method: GET
        description: Atlassian List Repository Forks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: role
          in: query
          type: string
          description: Filters the result based on the authenticated user's role on each repository.
        - name: q
          in: query
          type: string
          description: Query string to narrow down the response as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering).
        - name: sort
          in: query
          type: string
          description: Field by which the results should be sorted as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering).
      - name: forkrepository
        method: POST
        description: Atlassian Fork 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-hooks
      path: /repositories/{workspace}/{repo_slug}/hooks
      operations:
      - name: listwebhooksforrepository
        method: GET
        description: Atlassian List Webhooks for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createwebhookforrepository
        method: POST
        description: Atlassian Create Webhook for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-hooks-uid
      path: /repositories/{workspace}/{repo_slug}/hooks/{uid}
      operations:
      - name: deletewebhookforrepository
        method: DELETE
        description: Atlassian Delete Webhook for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getwebhookforrepository
        method: GET
        description: Atlassian Get Webhook for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - 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
      path: /repositories/{workspace}/{repo_slug}/issues/{issue_id}
      operations:
      - name: updateanissue
        method: PUT
        description: Atlassian Update an Issue
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-override-settings
      path: /repositories/{workspace}/{repo_slug}/override-settings
      operations:
      - name: retrievetheinheritancestateforrepositorysettings
        method: GET
        description: Atlassian Retrieve the Inheritance State for Repository Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: settheinheritancestateforrepositorysettings
        method: PUT
        description: Atlassian Set the Inheritance State for Repository Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-permissions-config-groups
      path: /repositories/{workspace}/{repo_slug}/permissions-config/groups
      operations:
      - name: listexplicitgrouppermissionsforrepository
        method: GET
        description: Atlassian List Explicit Group Permissions for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-permissions-config-groups-group_slug
      path: /repositories/{workspace}/{repo_slug}/permissions-config/groups/{group_slug}
      operations:
      - name: deleteanexplicitgrouppermissionforrepository
        method: DELETE
        description: Atlassian Delete an Explicit Group Permission for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getanexplicitgrouppermissionforrepository
        method: GET
        description: Atlassian Get an Explicit Group Permission for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - 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
      path: /repositories/{workspace}/{repo_slug}/permissions-config/users
      operations:
      - name: listexplicituserpermissionsforrepository
        method: GET
        description: Atlassian List Explicit User Permissions for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repositories-workspace-repo_slug-permissions-config-users-selected_user_id
      path: /repositories/{workspace}/{repo_slug}/permissions-config/users/{selected_user_id}
      operations:
      - name: deleteanexplicituserpermissionforrepository
        method: DELETE
        description: Atlassian Delete an Explicit User Permission for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getanexplicituserpermissionforrepository
        method: GET
        description: Atlassian Get an Explicit User Permission for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - 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-variables
      path: /repositories/{workspace}/{repo_slug}/pipelines_config/variables
      operations:
      - name: listvariablesforrepository
        method: GET
        description: Atlassian List Variables 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: createvariableforrepository
        method: POST
        description: Atlassian Create 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: 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: getvariableforrepository
        method: GET
        description: Atlassian Get 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 retrieve.
          required: true
      - 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: deletevariableforrepository
        method: DELETE
        description: Atlassian Delete 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 delete.
          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: deleterepositoryapplicationproperty
        method: DELETE
        description: Atlassian Delete 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: getrepositoryapplicationproperty
        method: GET
        description: Atlassian Get 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: repositories-workspace-repo_slug-watchers
      path: /repositories/{workspace}/{repo_slug}/watchers
      operations:
      - name: listrepositorieswatchers
        method: GET
        description: Atlassian List Repositories Watchers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: workspaces-workspace-permissions-repositories-repo_slug
      path: /workspaces/{workspace}/permissions/repositories/{repo_slug}
      operations:
      - name: listrepositorypermissionsforworkspace
        method: GET
        description: Atlassian List Repository Permissions for Workspace
        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: Name of a response property sort the result by as per
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: bitbucket-repositories-repositories-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Repositories API — Repositories. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/repositories/{workspace}
      name: repositories-workspace
      description: REST surface for repositories-workspace.
      operations:
      - method: GET
        name: listrepositoriesinworkspace
        description: Atlassian List Repositories in Workspace
        call: bitbucket-repositories-repositories.listrepositoriesinworkspace
        with:
          role: rest.role
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}
      name: repositories-workspace-repo-slug
      description: REST surface for repositories-workspace-repo_slug.
      operations:
      - method: DELETE
        name: deleterepository
        description: Atlassian Delete Repository
        call: bitbucket-repositories-repositories.deleterepository
        with:
          redirect_to: rest.redirect_to
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getrepository
        description: Atlassian Get Repository
        call: bitbucket-repositories-repositories.getrepository
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createrepository
        description: Atlassian Create Repository
        call: bitbucket-repositories-repositories.createrepository
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updaterepository
        description: Atlassian Update Repository
        call: bitbucket-repositories-repositories.updaterepository
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/branching-model
      name: repositories-workspace-repo-slug-branching-model
      description: REST surface for repositories-workspace-repo_slug-branching-model.
      operations:
      - method: GET
        name: getthebranchingmodelforrepository
        description: Atlassian Get the Branching Model for Repository
        call: bitbucket-repositories-repositories.getthebranchingmodelforrepository
        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: GET
        name: getthebranchingmodelconfigforrepository
        description: Atlassian Get the Branching Model Config for Repository
        call: bitbucket-repositories-repositories.getthebranchingmodelconfigforrepository
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatethebranchingmodelconfigforrepository
        description: Atlassian Update the Branching Model Config for Repository
        call: bitbucket-repositories-repositories.updatethebranchingmodelconfigforrepository
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/default-reviewers/{target-username}
      name: repositories-workspace-repo-slug-default-reviewers-target-username
      description: REST surface for repositories-workspace-repo_slug-default-reviewers-target_username.
      operations:
      - method: DELETE
        name: removeuserfromthedefaultreviewers
        description: Atlassian Remove User From the Default Reviewers
        call: bitbucket-repositories-repositories.removeuserfromthedefaultreviewers
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/deploy-keys
      name: repositories-workspace-repo-slug-deploy-keys
      description: REST surface for repositories-workspace-repo_slug-deploy-keys.
      operations:
      - method: GET
        name: listrepositorydeploykeys
        description: Atlassian List Repository Deploy Keys
        call: bitbucket-repositories-repositories.listrepositorydeploykeys
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addrepositorydeploykey
        description: Atlassian Add Repository Deploy Key
        call: bitbucket-repositories-repositories.addrepositorydeploykey
        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: DELETE
        name: deleterepositorydeploykey
        description: Atlassian Delete Repository Deploy Key
        call: bitbucket-repositories-repositories.deleterepositorydeploykey
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getrepositorydeploykey
        description: Atlassian Get Repository Deploy Key
        call: bitbucket-repositories-repositories.getrepositorydeploykey
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updaterepositorydeploykey
        description: Atlassian Update Repository Deploy Key
        call: bitbucket-repositories-repositories.updaterepositorydeploykey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/effective-branching-model
      name: repositories-workspace-repo-slug-effective-branching-model
      description: REST surface for repositories-workspace-repo_slug-effective-branching-model.
      operations:
      - method: GET
        name: gettheeffectiveorcurrentlyappliedbranchingmodelforrepository
        description: Atlassian Get the Effective, or Currently Applied, Branching Model for Repository
        call: bitbucket-repositories-repositories.gettheeffectiveorcurrentlyappliedbranchingmodelforrepository
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/forks
      name: repositories-workspace-repo-slug-forks
      description: REST surface for repositories-workspace-repo_slug-forks.
      operations:
      - method: GET
        name: listrepositoryforks
        description: Atlassian List Repository Forks
        call: bitbucket-repositories-repositories.listrepositoryforks
        with:
          role: rest.role
          q: rest.q
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: forkrepository
        description: Atlassian Fork Repository
        call: bitbucket-repositories-repositories.forkrepository
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/hooks
      name: repositories-workspace-repo-slug-hooks
      description: REST surface for repositories-workspace-repo_slug-hooks.
      operations:
      - method: GET
        name: listwebhooksforrepository
        description: Atlassian List Webhooks for Repository
        call: bitbucket-repositories-repositories.listwebhooksforrepository
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createwebhookforrepository
        description: Atlassian Create Webhook for Repository
        call: bitbucket-repositories-repositories.createwebhookforrepository
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/hooks/{uid}
      name: repositories-workspace-repo-slug-hooks-uid
      description: REST surface for repositories-workspace-repo_slug-hooks-uid.
      operations:
      - method: DELETE
        name: deletewebhookforrepository
        description: Atlassian Delete Webhook for Repository
        call: bitbucket-repositories-repositories.deletewebhookforrepository
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getwebhookforrepository
        description: Atlassian Get Webhook for Repository
        call: bitbucket-repositories-repositories.getwebhookforrepository
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatewebhookforrepository
        description: Atlassian Update Webhook for Repository
        call: bitbucket-repositories-repositories.updatewebhookforrepository
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/issues/{issue-id}
      name: repositories-workspace-repo-slug-issues-issue-id
      description: REST surface for repositories-workspace-repo_slug-issues-issue_id.
      operations:
      - method: PUT
        name: updateanissue
        description: Atlassian Update an Issue
        call: bitbucket-repositories-repositories.updateanissue
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repositories/{workspace}/{repo-slug}/override-settings
      name: repositories-workspace-repo-slug-override-settings
      description: REST surface for repositories-workspace-repo_slug-override-settings.
      operations:
      - method: GET
        name: retrievetheinheritancestateforrepositorysettings
        description: Atlassian Retrieve the Inheritance State for Repository Settings
        call: bitbucket-repositories-repositories.retrievetheinheritancestateforrepositorysettings
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: settheinheritancestateforrepositorysettings
        description: Atlassian Set the Inheritance State for Repository Settings
        call: bitbucket-repositories

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