Atlassian · Capability

Atlassian Bit Bucket Snippets API — Update

Atlassian Bit Bucket Snippets API — Update. 3 operations. Lead operation: Atlassian Update Snippet. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianUpdate

What You Can Do

PUT
Updatesnippet — Atlassian Update Snippet
/v1/snippets/{workspace}/{encoded-id}
PUT
Updatecommentonsnippet — Atlassian Update Comment on Snippet
/v1/snippets/{workspace}/{encoded-id}/comments/{comment-id}
PUT
Updatepreviousrevisionofsnippet — Atlassian Update Previous Revision of Snippet
/v1/snippets/{workspace}/{encoded-id}/{node-id}

MCP Tools

atlassian-update-snippet

Atlassian Update Snippet

idempotent
atlassian-update-comment-snippet

Atlassian Update Comment on Snippet

idempotent
atlassian-update-previous-revision-snippet

Atlassian Update Previous Revision of Snippet

idempotent

Capability Spec

bitbucket-snippets-update.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Bit Bucket Snippets API — Update
  description: 'Atlassian Bit Bucket Snippets API — Update. 3 operations. Lead operation: Atlassian Update Snippet. 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-snippets-update
    baseUri: https://api.bitbucket.org/2.0
    description: Atlassian Bit Bucket Snippets API — Update business capability. Self-contained, no shared references.
    resources:
    - name: snippets-workspace-encoded_id
      path: /snippets/{workspace}/{encoded_id}
      operations:
      - name: updatesnippet
        method: PUT
        description: Atlassian Update Snippet
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: snippets-workspace-encoded_id-comments-comment_id
      path: /snippets/{workspace}/{encoded_id}/comments/{comment_id}
      operations:
      - name: updatecommentonsnippet
        method: PUT
        description: Atlassian Update Comment on Snippet
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: snippets-workspace-encoded_id-node_id
      path: /snippets/{workspace}/{encoded_id}/{node_id}
      operations:
      - name: updatepreviousrevisionofsnippet
        method: PUT
        description: Atlassian Update Previous Revision of Snippet
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: bitbucket-snippets-update-rest
    port: 8080
    description: REST adapter for Atlassian Bit Bucket Snippets API — Update. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/snippets/{workspace}/{encoded-id}
      name: snippets-workspace-encoded-id
      description: REST surface for snippets-workspace-encoded_id.
      operations:
      - method: PUT
        name: updatesnippet
        description: Atlassian Update Snippet
        call: bitbucket-snippets-update.updatesnippet
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/snippets/{workspace}/{encoded-id}/comments/{comment-id}
      name: snippets-workspace-encoded-id-comments-comment-id
      description: REST surface for snippets-workspace-encoded_id-comments-comment_id.
      operations:
      - method: PUT
        name: updatecommentonsnippet
        description: Atlassian Update Comment on Snippet
        call: bitbucket-snippets-update.updatecommentonsnippet
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/snippets/{workspace}/{encoded-id}/{node-id}
      name: snippets-workspace-encoded-id-node-id
      description: REST surface for snippets-workspace-encoded_id-node_id.
      operations:
      - method: PUT
        name: updatepreviousrevisionofsnippet
        description: Atlassian Update Previous Revision of Snippet
        call: bitbucket-snippets-update.updatepreviousrevisionofsnippet
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bitbucket-snippets-update-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Bit Bucket Snippets API — Update. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: atlassian-update-snippet
      description: Atlassian Update Snippet
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-snippets-update.updatesnippet
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-update-comment-snippet
      description: Atlassian Update Comment on Snippet
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-snippets-update.updatecommentonsnippet
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-update-previous-revision-snippet
      description: Atlassian Update Previous Revision of Snippet
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: bitbucket-snippets-update.updatepreviousrevisionofsnippet
      outputParameters:
      - type: object
        mapping: $.