Atlassian Snippets API

The Snippets API from Atlassian — 14 operation(s) for snippets.

Operations 25

GET /snippets Atlassian List Snippets #
POST /snippets Atlassian Create A Snippet #
GET /snippets/{workspace} Atlassian List Snippets In A Workspace #
POST /snippets/{workspace} Atlassian Create A Snippet For A Workspace #
DELETE /snippets/{workspace}/{encoded_id} Atlassian Delete A Snippet #
GET /snippets/{workspace}/{encoded_id} Atlassian Get A Snippet #
PUT /snippets/{workspace}/{encoded_id} Atlassian Update A Snippet #
GET /snippets/{workspace}/{encoded_id}/comments Atlassian List Comments On A Snippet #
POST /snippets/{workspace}/{encoded_id}/comments Atlassian Create A Comment On A Snippet #
DELETE /snippets/{workspace}/{encoded_id}/comments/{comment_id} Atlassian Delete A Comment On A Snippet #
GET /snippets/{workspace}/{encoded_id}/comments/{comment_id} Atlassian Get A Comment On A Snippet #
PUT /snippets/{workspace}/{encoded_id}/comments/{comment_id} Atlassian Update A Comment On A Snippet #
GET /snippets/{workspace}/{encoded_id}/commits Atlassian List Snippet Changes #
GET /snippets/{workspace}/{encoded_id}/commits/{revision} Atlassian Get A Previous Snippet Change #
GET /snippets/{workspace}/{encoded_id}/files/{path} Atlassian Get A Snippet S Raw File At Head #
DELETE /snippets/{workspace}/{encoded_id}/watch Atlassian Stop Watching A Snippet #
GET /snippets/{workspace}/{encoded_id}/watch Atlassian Check If The Current User Is Watching A Snippet #
PUT /snippets/{workspace}/{encoded_id}/watch Atlassian Watch A Snippet #
GET /snippets/{workspace}/{encoded_id}/watchers Atlassian List Users Watching A Snippet #
DELETE /snippets/{workspace}/{encoded_id}/{node_id} Atlassian Delete A Previous Revision Of A Snippet #
GET /snippets/{workspace}/{encoded_id}/{node_id} Atlassian Get A Previous Revision Of A Snippet #
PUT /snippets/{workspace}/{encoded_id}/{node_id} Atlassian Update A Previous Revision Of A Snippet #
GET /snippets/{workspace}/{encoded_id}/{node_id}/files/{path} Atlassian Get A Snippet S Raw File #
GET /snippets/{workspace}/{encoded_id}/{revision}/diff Atlassian Get Snippet Changes Between Versions #
GET /snippets/{workspace}/{encoded_id}/{revision}/patch Atlassian Get Snippet Patch Between Versions #

Documentation

📖
Documentation
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-addon/
📖
Documentation
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-webhooks/
📖
Documentation
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/
📖
Documentation
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/
📖
Documentation
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-snippets/
📖
Documentation
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/
📖
Documentation
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-users/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-analytics/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-audit/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/connect-modules/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v2/intro/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-inline-tasks
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-long-running-task/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-relation/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-search/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-settings/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template/
📖
Documentation
https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-user/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-announcement-banner/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-values--apps-/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-app-openapi
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-application-roles/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/
📖
Documentation
https://developer.atlassian.com/server/framework/atlassian-sdk/audit/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-classification-levels/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-jira-settings/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/getting-started-with-connect/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/connect-api-migration/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-service-registry/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-dashboards/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/data-security-policy-developer-guide/
📖
Documentation
https://developer.atlassian.com/platform/forge/events-reference/jira/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-jira-expressions/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-field-configurations/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-filters/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/forge/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-groups/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-group-and-user-picker/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-links/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-schemes/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-types/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-schemes/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-type-screen-schemes/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-labels/
📖
Documentation
https://developer.atlassian.com/platform/marketplace/license-api-for-cloud-apps/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-license-metrics/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permissions/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-notification-schemes/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-permission-schemes/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-priorities/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-categories/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-key-and-name-validation/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-resolutions/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-project-roles/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-screens/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-screen-schemes/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-security-level/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-server-info/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-statuses/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-status-categories/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-tasks/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-ui-modifications--apps-/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-avatars/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions/
📖
Documentation
https://developer.atlassian.com/server/jira/platform/webhooks/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-workflow-schemes/
📖
Documentation
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs/
📖
Documentation
https://developer.atlassian.com/cloud/admin/organization/rest/
📖
Documentation
https://developer.atlassian.com/cloud/admin/user-management/rest/
📖
Documentation
https://developer.atlassian.com/cloud/admin/user-provisioning/rest/

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-bitbucket-hook-events-paginated_hook_events-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-bitbucket-pull-requests-a_pullrequest_comment_task-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-bitbucket-repositories-account-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-bitbucket-snippets-account-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-bitbucket-teams-account-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-bitbucket-user-account-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-bitbucket-workspaces-account-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-confluence-content-body-async-content-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-confluence-content-states-async-id-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-confluence-group-group-array-with-links-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-confluence-inline-tasks-task-page-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-confluence-longtask-long-task-status-with-links-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-confluence-search-search-page-response-search-result-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-confluence-space-content-state-settings-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-confluence-template-blueprint-template-array-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-confluence-user-account-id-email-record-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-schema/atlassian-admin-domain-page-schema.json

Other Resources

🔗
GraphQL
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/graphql/atlassian-graphql.md
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-bitbucket-hook-events-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-bitbucket-pull-requests-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-bitbucket-repositories-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-bitbucket-snippets-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-bitbucket-teams-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-bitbucket-user-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-bitbucket-workspaces-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-confluence-audit-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-confluence-content-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-confluence-content-body-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-confluence-content-states-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-confluence-group-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-confluence-inline-tasks-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-confluence-longtask-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-confluence-relation-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-confluence-search-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-confluence-settings-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-confluence-space-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-confluence-template-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-confluence-user-context.jsonld
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/json-ld/atlassian-admin-context.jsonld

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/atlassian-snippets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

atlassian-snippets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Atlassian Bitbucket Snippets API
  description: Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework.
  version: '2.0'
  termsOfService: https://www.atlassian.com/legal/customer-agreement
  contact:
    name: Bitbucket Support
    url: https://support.atlassian.com/bitbucket-cloud/
    email: support@bitbucket.org
servers:
- url: https://api.bitbucket.org/2.0
tags:
- name: Snippets
  description: "Snippets allow you share code segments or files with yourself, members of\nyour workspace, or the world.\n\nLike pull requests, repositories and workspaces, the full set of snippets\nis defined by what the current user has access to. This includes all\nsnippets owned by any of the workspaces the user is a member of, or\nsnippets by other users that the current user is either watching or has\n collaborated on (for instance by commenting on it).\n"
paths:
  /snippets:
    parameters: []
    get:
      tags:
      - Snippets
      description: 'Returns all snippets. Like pull requests, repositories and workspaces, the<br>full set of snippets is defined by what the current user has access to.<br><br>This includes all snippets owned by any of the workspaces the user is a member of,<br>or snippets by other users that the current user is either watching or has collaborated<br>on (for instance by commenting on it).<br><br>To limit the set of returned snippets, apply the<br>`?role=[owner|contributor|member]` query parameter where the roles are<br>defined as follows:<br><br>* `owner`: all snippets owned by the current user<br>* `contributor`: all snippets owned by, or watched by the current user<br>* `member`: created in a workspaces or watched by the current user<br><br>When no role is specified, all public snippets are returned, as well as all<br>privately owned snippets watched or commented on.<br><br>The returned response is a normal paginated JSON list. This endpoint<br>only supports `application/json` responses and no<br>`multipart/form-data` or `multipart/related`. As a result, it is not<br>possible to include the file contents.'
      summary: Atlassian List Snippets
      responses:
        '200':
          description: A paginated list of snippets.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/paginated_snippets'
        '404':
          description: If the snippet does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      parameters:
      - name: role
        in: query
        description: Filter down the result based on the authenticated user's role (`owner`, `contributor`, or `member`).
        required: false
        schema:
          type: string
          enum:
          - owner
          - contributor
          - member
      security:
      - oauth2:
        - snippet
      - basic: []
      - api_key: []
      operationId: atlassianListSnippets
    post:
      tags:
      - Snippets
      description: 'Creates a new snippet under the authenticated user''s account.<br><br>Snippets can contain multiple files. Both text and binary files are<br>supported.<br><br>The simplest way to create a new snippet from a local file:<br><br>    $ curl -u username:password -X POST https://api.bitbucket.org/2.0/snippets               -F file=@image.png<br><br>Creating snippets through curl has a few limitations and so let''s look<br>at a more complicated scenario.<br><br>Snippets are created with a multipart POST. Both `multipart/form-data`<br>and `multipart/related` are supported. Both allow the creation of<br>snippets with both meta data (title, etc), as well as multiple text<br>and binary files.<br><br>The main difference is that `multipart/related` can use rich encoding<br>for the meta data (currently JSON).<br><br><br>multipart/related (RFC-2387)<br>-<br><br>This is the most advanced and efficient way to create a paste.<br><br>    POST /2.0/snippets/evzijst HTTP/1.1<br>    Content-Length: 1188<br>    Content-Type: multipart/related; start="snippet"; boundary="===============1438169132528273974=="<br>    MIME-Version: 1.0<br><br>    --===============1438169132528273974==<br>    Content-Type: application/json; charset="utf-8"<br>    MIME-Version: 1.0<br>    Content-ID: snippet<br><br>    {<br>      "title": "My snippet",<br>      "is_private": true,<br>      "scm": "git",<br>      "files": {<br>          "foo.txt": {},<br>          "image.png": {}<br>        }<br>    }<br><br>    --===============1438169132528273974==<br>    Content-Type: text/plain; charset="us-ascii"<br>    MIME-Version: 1.0<br>    Content-Transfer-Encoding: 7bit<br>    Content-ID: "foo.txt"<br>    Content-Disposition: attachment; filename="foo.txt"<br><br>    foo<br><br>    --===============1438169132528273974==<br>    Content-Type: image/png<br>    MIME-Version: 1.0<br>    Content-Transfer-Encoding: base64<br>    Content-ID: "image.png"<br>    Content-Disposition: attachment; filename="image.png"<br><br>    iVBORw0KGgoAAAANSUhEUgAAABQAAAAoCAYAAAD+MdrbAAABD0lEQVR4Ae3VMUoDQRTG8ccUaW2m<br>    TKONFxArJYJamCvkCnZTaa+VnQdJSBFl2SMsLFrEWNjZBZs0JgiL/+KrhhVmJRbCLPx4O+/DT2TB<br>    cbblJxf+UWFVVRNsEGAtgvJxnLm2H+A5RQ93uIl+3632PZyl/skjfOn9Gvdwmlcw5aPUwimG+NT5<br>    EnNN036IaZePUuIcK533NVfal7/5yjWeot2z9ta1cAczHEf7I+3J0ws9Cgx0fsOFpmlfwKcWPuBQ<br>    73Oc4FHzBaZ8llq4q1mr5B2mOUCt815qYR8eB1hG2VJ7j35q4RofaH7IG+Xrf/PfJhfmwtfFYoIN<br>    AqxFUD6OMxcvkO+UfKfkOyXfKdsv/AYCHMLVkHAFWgAAAABJRU5ErkJggg==<br>    --===============1438169132528273974==--<br><br>The request contains multiple parts and is structured as follows.<br><br>The first part is the JSON document that describes the snippet''s<br>properties or meta data. It either has to be the first part, or the<br>request''s `Content-Type` header must contain the `start` parameter to<br>point to it.<br><br>The remaining parts are the files of which there can be zero or more.<br>Each file part should contain the `Content-ID` MIME header through<br>which the JSON meta data''s `files` element addresses it. The value<br>should be the name of the file.<br><br>`Content-Disposition` is an optional MIME header. The header''s<br>optional `filename` parameter can be used to specify the file name<br>that Bitbucket should use when writing the file to disk. When present,<br>`filename` takes precedence over the value of `Content-ID`.<br><br>When the JSON body omits the `files` element, the remaining parts are<br>not ignored. Instead, each file is added to the new snippet as if its<br>name was explicitly linked (the use of the `files` elements is<br>mandatory for some operations like deleting or renaming files).<br><br><br>multipart/form-data<br>-<br><br>The use of JSON for the snippet''s meta data is optional. Meta data can<br>also be supplied as regular form fields in a more conventional<br>`multipart/form-data` request:<br><br>    $ curl -X POST -u credentials https://api.bitbucket.org/2.0/snippets               -F title="My snippet"               -F file=@foo.txt -F file=@image.png<br><br>    POST /2.0/snippets HTTP/1.1<br>    Content-Length: 951<br>    Content-Type: multipart/form-data; boundary=-63a4b224c59f<br><br>    63a4b224c59f<br>    Content-Disposition: form-data; name="file"; filename="foo.txt"<br>    Content-Type: text/plain<br><br>    foo<br><br>    63a4b224c59f<br>    Content-Disposition: form-data; name="file"; filename="image.png"<br>    Content-Type: application/octet-stream<br><br>    ?PNG<br><br>    IHDR?1??I.....<br>    63a4b224c59f<br>    Content-Disposition: form-data; name="title"<br><br>    My snippet<br>    63a4b224c59f--<br><br>Here the meta data properties are included as flat, top-level form<br>fields. The file attachments use the `file` field name. To attach<br>multiple files, simply repeat the field.<br><br>The advantage of `multipart/form-data` over `multipart/related` is<br>that it can be easier to build clients.<br><br>Essentially all properties are optional, `title` and `files` included.<br><br><br>Sharing and Visibility<br>-<br><br>Snippets can be either public (visible to anyone on Bitbucket, as well<br>as anonymous users), or private (visible only to members of the workspace).<br>This is controlled through the snippet''s `is_private` element:<br><br>* **is_private=false** -- everyone, including anonymous users can view<br>  the snippet<br>* **is_private=true** -- only workspace members can view the snippet<br><br>To create the snippet under a workspace, just append the workspace ID<br>to the URL. See [`/2.0/snippets/{workspace}`](/cloud/bitbucket/rest/api-group-snippets/#api-snippets-workspace-post).'
      summary: Atlassian Create A Snippet
      responses:
        '201':
          description: The newly created snippet object.
          headers:
            Location:
              description: The URL of the newly created snippet.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snippet'
        '401':
          description: If the request was not authenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      requestBody:
        $ref: '#/components/requestBodies/snippet'
      security:
      - oauth2:
        - snippet:write
      - basic: []
      - api_key: []
      operationId: atlassianCreateASnippet
  /snippets/{workspace}:
    parameters:
    - name: workspace
      in: path
      description: 'This can either be the workspace ID (slug) or the workspace UUID

        surrounded by curly-braces, for example: `{workspace UUID}`.

        '
      required: true
      schema:
        type: string
    get:
      tags:
      - Snippets
      description: Identical to [`/snippets`](/cloud/bitbucket/rest/api-group-snippets/#api-snippets-get), except that the result is further filtered<br>by the snippet owner and only those that are owned by `{workspace}` are<br>returned.
      summary: Atlassian List Snippets In A Workspace
      responses:
        '200':
          description: A paginated list of snippets.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/paginated_snippets'
        '404':
          description: If the user does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      parameters:
      - name: role
        in: query
        description: Filter down the result based on the authenticated user's role (`owner`, `contributor`, or `member`).
        required: false
        schema:
          type: string
          enum:
          - owner
          - contributor
          - member
      security:
      - oauth2:
        - snippet
      - basic: []
      - api_key: []
      operationId: atlassianListSnippetsInAWorkspace
    post:
      tags:
      - Snippets
      description: Identical to [`/snippets`](/cloud/bitbucket/rest/api-group-snippets/#api-snippets-post), except that the new snippet will be<br>created under the workspace specified in the path parameter<br>`{workspace}`.
      summary: Atlassian Create A Snippet For A Workspace
      responses:
        '201':
          description: The newly created snippet object.
          headers:
            Location:
              description: The URL of the newly created snippet.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snippet'
        '401':
          description: If the request was not authenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: If the authenticated user does not have permission to create snippets in the specified workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      requestBody:
        $ref: '#/components/requestBodies/snippet'
      security:
      - oauth2:
        - snippet:write
      - basic: []
      - api_key: []
      operationId: atlassianCreateASnippetForAWorkspace
  /snippets/{workspace}/{encoded_id}:
    parameters:
    - name: encoded_id
      in: path
      description: The snippet id.
      required: true
      schema:
        type: string
    - name: workspace
      in: path
      description: 'This can either be the workspace ID (slug) or the workspace UUID

        surrounded by curly-braces, for example: `{workspace UUID}`.

        '
      required: true
      schema:
        type: string
    delete:
      tags:
      - Snippets
      description: Deletes a snippet and returns an empty response.
      summary: Atlassian Delete A Snippet
      responses:
        '204':
          description: If the snippet was deleted successfully.
        '401':
          description: If the snippet is private and the request was not authenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: If authenticated user does not have permission to delete the private snippet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '404':
          description: If the snippet does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
      - oauth2:
        - snippet:write
      - basic: []
      - api_key: []
      operationId: atlassianDeleteASnippet
    get:
      tags:
      - Snippets
      description: 'Retrieves a single snippet.<br><br>Snippets support multiple content types:<br><br>* application/json<br>* multipart/related<br>* multipart/form-data<br><br><br>application/json<br>-<br><br>The default content type of the response is `application/json`.<br>Since JSON is always `utf-8`, it cannot reliably contain file contents<br>for files that are not text. Therefore, JSON snippet documents only<br>contain the filename and links to the file contents.<br><br>This means that in order to retrieve all parts of a snippet, N+1<br>requests need to be made (where N is the number of files in the<br>snippet).<br><br><br>multipart/related<br>--<br><br>To retrieve an entire snippet in a single response, use the<br>`Accept: multipart/related` HTTP request header.<br><br>    $ curl -H "Accept: multipart/related" https://api.bitbucket.org/2.0/snippets/evzijst/1<br><br>Response:<br><br>    HTTP/1.1 200 OK<br>    Content-Length: 2214<br>    Content-Type: multipart/related; start="snippet"; boundary="===============1438169132528273974=="<br>    MIME-Version: 1.0<br><br>    --===============1438169132528273974==<br>    Content-Type: application/json; charset="utf-8"<br>    MIME-Version: 1.0<br>    Content-ID: snippet<br><br>    {<br>      "links": {<br>        "self": {<br>          "href": "https://api.bitbucket.org/2.0/snippets/evzijst/kypj"<br>        },<br>        "html": {<br>          "href": "https://bitbucket.org/snippets/evzijst/kypj"<br>        },<br>        "comments": {<br>          "href": "https://api.bitbucket.org/2.0/snippets/evzijst/kypj/comments"<br>        },<br>        "watchers": {<br>          "href": "https://api.bitbucket.org/2.0/snippets/evzijst/kypj/watchers"<br>        },<br>        "commits": {<br>          "href": "https://api.bitbucket.org/2.0/snippets/evzijst/kypj/commits"<br>        }<br>      },<br>      "id": kypj,<br>      "title": "My snippet",<br>      "created_on": "2014-12-29T22:22:04.790331+00:00",<br>      "updated_on": "2014-12-29T22:22:04.790331+00:00",<br>      "is_private": false,<br>      "files": {<br>        "foo.txt": {<br>          "links": {<br>            "self": {<br>              "href": "https://api.bitbucket.org/2.0/snippets/evzijst/kypj/files/367ab19/foo.txt"<br>            },<br>            "html": {<br>              "href": "https://bitbucket.org/snippets/evzijst/kypj#file-foo.txt"<br>            }<br>          }<br>        },<br>        "image.png": {<br>          "links": {<br>            "self": {<br>              "href": "https://api.bitbucket.org/2.0/snippets/evzijst/kypj/files/367ab19/image.png"<br>            },<br>            "html": {<br>              "href": "https://bitbucket.org/snippets/evzijst/kypj#file-image.png"<br>            }<br>          }<br>        }<br>      ],<br>      "owner": {<br>        "username": "evzijst",<br>        "nickname": "evzijst",<br>        "display_name": "Erik van Zijst",<br>        "uuid": "{d301aafa-d676-4ee0-88be-962be7417567}",<br>        "links": {<br>          "self": {<br>            "href": "https://api.bitbucket.org/2.0/users/evzijst"<br>          },<br>          "html": {<br>            "href": "https://bitbucket.org/evzijst"<br>          },<br>          "avatar": {<br>            "href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Jul/31/erik-avatar-725122544-0_avatar.png"<br>          }<br>        }<br>      },<br>      "creator": {<br>        "username": "evzijst",<br>        "nickname": "evzijst",<br>        "display_name": "Erik van Zijst",<br>        "uuid": "{d301aafa-d676-4ee0-88be-962be7417567}",<br>        "links": {<br>          "self": {<br>            "href": "https://api.bitbucket.org/2.0/users/evzijst"<br>          },<br>          "html": {<br>            "href": "https://bitbucket.org/evzijst"<br>          },<br>          "avatar": {<br>            "href": "https://bitbucket-staging-assetroot.s3.amazonaws.com/c/photos/2013/Jul/31/erik-avatar-725122544-0_avatar.png"<br>          }<br>        }<br>      }<br>    }<br><br>    --===============1438169132528273974==<br>    Content-Type: text/plain; charset="us-ascii"<br>    MIME-Version: 1.0<br>    Content-Transfer-Encoding: 7bit<br>    Content-ID: "foo.txt"<br>    Content-Disposition: attachment; filename="foo.txt"<br><br>    foo<br><br>    --===============1438169132528273974==<br>    Content-Type: image/png<br>    MIME-Version: 1.0<br>    Content-Transfer-Encoding: base64<br>    Content-ID: "image.png"<br>    Content-Disposition: attachment; filename="image.png"<br><br>    iVBORw0KGgoAAAANSUhEUgAAABQAAAAoCAYAAAD+MdrbAAABD0lEQVR4Ae3VMUoDQRTG8ccUaW2m<br>    TKONFxArJYJamCvkCnZTaa+VnQdJSBFl2SMsLFrEWNjZBZs0JgiL/+KrhhVmJRbCLPx4O+/DT2TB<br>    cbblJxf+UWFVVRNsEGAtgvJxnLm2H+A5RQ93uIl+3632PZyl/skjfOn9Gvdwmlcw5aPUwimG+NT5<br>    EnNN036IaZePUuIcK533NVfal7/5yjWeot2z9ta1cAczHEf7I+3J0ws9Cgx0fsOFpmlfwKcWPuBQ<br>    73Oc4FHzBaZ8llq4q1mr5B2mOUCt815qYR8eB1hG2VJ7j35q4RofaH7IG+Xrf/PfJhfmwtfFYoIN<br>    AqxFUD6OMxcvkO+UfKfkOyXfKdsv/AYCHMLVkHAFWgAAAABJRU5ErkJggg==<br>    --===============1438169132528273974==--<br><br>multipart/form-data<br>-<br><br>As with creating new snippets, `multipart/form-data` can be used as an<br>alternative to `multipart/related`. However, the inherently flat<br>structure of form-data means that only basic, root-level properties<br>can be returned, while nested elements like `links` are omitted:<br><br>    $ curl -H "Accept: multipart/form-data" https://api.bitbucket.org/2.0/snippets/evzijst/kypj<br><br>Response:<br><br>    HTTP/1.1 200 OK<br>    Content-Length: 951<br>    Content-Type: multipart/form-data; boundary=-63a4b224c59f<br><br>    63a4b224c59f<br>    Content-Disposition: form-data; name="title"<br>    Content-Type: text/plain; charset="utf-8"<br><br>    My snippet<br>    63a4b224c59f--<br>    Content-Disposition: attachment; name="file"; filename="foo.txt"<br>    Content-Type: text/plain<br><br>    foo<br><br>    63a4b224c59f<br>    Content-Disposition: attachment; name="file"; filename="image.png"<br>    Content-Transfer-Encoding: base64<br>    Content-Type: application/octet-stream<br><br>    iVBORw0KGgoAAAANSUhEUgAAABQAAAAoCAYAAAD+MdrbAAABD0lEQVR4Ae3VMUoDQRTG8ccUaW2m<br>    TKONFxArJYJamCvkCnZTaa+VnQdJSBFl2SMsLFrEWNjZBZs0JgiL/+KrhhVmJRbCLPx4O+/DT2TB<br>    cbblJxf+UWFVVRNsEGAtgvJxnLm2H+A5RQ93uIl+3632PZyl/skjfOn9Gvdwmlcw5aPUwimG+NT5<br>    EnNN036IaZePUuIcK533NVfal7/5yjWeot2z9ta1cAczHEf7I+3J0ws9Cgx0fsOFpmlfwKcWPuBQ<br>    73Oc4FHzBaZ8llq4q1mr5B2mOUCt815qYR8eB1hG2VJ7j35q4RofaH7IG+Xrf/PfJhfmwtfFYoIN<br>    AqxFUD6OMxcvkO+UfKfkOyXfKdsv/AYCHMLVkHAFWgAAAABJRU5ErkJggg==<br>    5957323a6b76--'
      summary: Atlassian Get A Snippet
      responses:
        '200':
          description: The snippet object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snippet'
            multipart/related:
              schema:
                $ref: '#/components/schemas/snippet'
            multipart/form-data:
              schema:
                $ref: '#/components/schemas/snippet'
        '401':
          description: If the snippet is private and the request was not authenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
            multipart/related:
              schema:
                $ref: '#/components/schemas/error'
            multipart/form-data:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: If authenticated user does not have access to the private snippet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
            multipart/related:
              schema:
                $ref: '#/components/schemas/error'
            multipart/form-data:
              schema:
                $ref: '#/components/schemas/error'
        '404':
          description: If the snippet does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
            multipart/related:
              schema:
                $ref: '#/components/schemas/error'
            multipart/form-data:
              schema:
                $ref: '#/components/schemas/error'
        '410':
          description: If the snippet marked as spam.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
            multipart/related:
              schema:
                $ref: '#/components/schemas/error'
            multipart/form-data:
              schema:
                $ref: '#/components/schemas/error'
      security:
      - oauth2:
        - snippet
      - basic: []
      - api_key: []
      operationId: atlassianGetASnippet
    put:
      tags:
      - Snippets
      description: 'Used to update a snippet. Use this to add and delete files and to<br>change a snippet''s title.<br><br>To update a snippet, one can either PUT a full snapshot, or only the<br>parts that need to be changed.<br><br>The contract for PUT on this API is that properties missing from the<br>request remain untouched so that snippets can be efficiently<br>manipulated with differential payloads.<br><br>To delete a property (e.g. the title, or a file), include its name in<br>the request, but omit its value (use `null`).<br><br>As in Git, explicit renaming of files is not supported. Instead, to<br>rename a file, delete it and add it again under another name. This can<br>be done atomically in a single request. Rename detection is left to<br>the SCM.<br><br>PUT supports three different content types for both request and<br>response bodies:<br><br>* `application/json`<br>* `multipart/related`<br>* `multipart/form-data`<br><br>The content type used for the request body can be different than that<br>used for the response. Content types are specified using standard HTTP<br>headers.<br><br>Use the `Content-Type` and `Accept` headers to select the desired<br>request and response format.<br><br><br>application/json<br>-<br><br>As with creation and retrieval, the content type determines what<br>properties can be manipulated. `application/json` does not support<br>file contents and is therefore limited to a snippet''s meta data.<br><br>To update the title, without changing any of its files:<br><br>    $ curl -X POST -H "Content-Type: application/json" https://api.bitbucket.org/2.0/snippets/evzijst/kypj             -d ''{"title": "Updated title"}''<br><br><br>To delete the title:<br><br>    $ curl -X POST -H "Content-Type: application/json" https://api.bitbucket.org/2.0/snippets/evzijst/kypj             -d ''{"title": null}''<br><br>Not all parts of a snippet can be manipulated. The owner and creator<br>for instance are immutable.<br><br><br>multipart/related<br>--<br><br>`multipart/related` can be used to manipulate all of a snippet''s<br>properties. The body is identical to a POST. properties omitted from<br>the request are left unchanged. Since the `start` part contains JSON,<br>the mechanism for manipulating the snippet''s meta data is identical<br>to `application/json` requests.<br><br>To update one of a snippet''s file contents, while also changing its<br>title:<br><br>    PUT /2.0/snippets/evzijst/kypj HTTP/1.1<br>    Content-Length: 288<br>    Content-Type: multipart/related; start="snippet"; boundary="===============1438169132528273974=="<br>    MIME-Version: 1.0<br><br>    --===============1438169132528273974==<br>    Content-Type: application/json; charset="utf-8"<br>    MIME-Version: 1.0<br>    Content-ID: snippet<br><br>    {<br>      "title": "My updated snippet",<br>      "files": {<br>          "foo.txt": {}<br>        }<br>    }<br><br>    --===============1438169132528273974==<br>    Content-Type: text/plain; charset="us-ascii"<br>    MIME-Version: 1.0<br>    Content-Transfer-Encoding: 7bit<br>    Content-ID: "foo.txt"<br>    Content-Disposition: attachment; filename="foo.txt"<br><br>    Updated file contents.<br><br>    --===============1438169132528273974==--<br><br>Here only the parts that are changed are included in the body. The<br>other files remain untouched.<br><br>Note the use of the `files` list in the JSON part. This list contains<br>the files that are being manipulated. This list should have<br>corresponding multiparts in the request that contain the new contents<br>of these files.<br><br>If a filename in the `files` list does not have a corresponding part,<br>it will be deleted from the snippet, as shown below:<br><br>    PUT /2.0/snippets/evzijst/kypj HTTP/1.1<br>    Content-Length: 188<br>    Content-Type: multipart/related; start="snippet"; boundary="===============1438169132528273974=="<br>    MIME-Version: 1.0<br><br>    --===============1438169132528273974==<br>    Content-Type: application/json; charset="utf-8"<br>    MIME-Version: 1.0<br>    Content-ID: snippet<br><br>    {<br>      "files": {<br>        "image.png": {}<br>      }<br>    }<br><br>    --===============1438169132528273974==--<br><br>To simulate a rename, delete a file and add the same file under<br>another name:<br><br>    PUT /2.0/snippets/evzijst/kypj HTTP/1.1<br>    Content-Length: 212<br>    Content-Type: multipart/related; start="snippet"; boundary="===============1438169132528273974=="<br>    MIME-Version: 1.0<br><br>    --===============1438169132528273974==<br>    Content-Type: application/json; charset="utf-8"<br>    MIME-Version: 1.0<br>    Content-ID: snippet<br><br>    {<br>        "files": {<br>          "foo.txt": {},<br>          "bar.txt": {}<br>        }<br>    }<br><br>    --===============1438169132528273974==<br>    Content-Type: text/plain; charset="us-ascii"<br>    MIME-Version: 1.0<br>    Content-Transfer-Encoding: 7bit<br>    Content-ID: "bar.txt"<br>    Content-Disposition: attachment; filename="bar.txt"<br><br>    foo<br><br>    --===============1438169132528273974==--<br><br><br>multipart/form-data<br>--<br><br>Again, one can also use `multipart/form-data` to manipulate file<br>contents and meta data atomically.<br><br>    $ curl -X PUT http://localhost:12345/2.0/snippets/evzijst/kypj             -F title="My updated snippet" -F file=@foo.txt<br><br>    PUT /2.0/snippets/evzijst/kypj HTTP/1.1<br>    Content-Length: 351<br>    Content-Type: multipart/form-data; boundary=-63a4b224c59f<br><br>    63a4b224c59f<br>    Content-Disposition: form-data; name="file"; filename="foo.txt"<br>    Content-Type: text/plain<br><br>    foo<br><br>    63a4b224c59f<br>    Content-Disposition: form-data; name="title"<br><br>    My updated snippet<br>    63a4b224c59f<br><br>To delete a file, omit its contents while including its name in the<br>`files` field:<br><br>    $ curl -X PUT https://api.bitbucket.org/2.0/snippets/evzijst/kypj -F files=image.png<br><br>    PUT /2.0/snippets/evzijst/kypj HTTP/1.1<br>    Content-Length: 149<br>    Content-Type: multipart/form-data; boundary=-ef8871065a86<br><br>    ef8871065a86<br>    Content-Disposition: form-data; name="files"<br><br>    image.png<br>    ef8871065a86--<br><br>The explicit use of the `files` element in `multipart/related` and<br>`multipart/form-data` is only required when deleting files.<br>The default mode of operation is for file parts to be processed,<br>regardless of whether or not they are listed in `files`, as a<br>convenience to the client.'
      summary: Atlassian Update A Snippet
      responses:
        '200':
          description: The updated snippet object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snippet'
            multipart/related:
              schema:
                $ref: '#/components/schemas/snippet'
            multipart/form-data:
              schema:
                $ref: '#/components/schemas/snippet'
        '401':
          description: If the snippet is private and the request was not authenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
            multipart/related:
              schema:
                $ref: '#/components/schemas/error'
            multipart/form-data:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: If authenticated user does not have permission to update the private snippet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
            multipart/related:
              schema:
                $ref: '#/components/schemas/error'
            multipart/form-data:
              schema:
                $ref: '#/components/schemas/error'
        '404':
          description: If the snippet does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
            multipart/related:
              schema:
                $ref: '#/components/schemas/error'
            multipart/form-data:
              schema:
                $ref: '#/components/schemas/error'
      security:
      - oauth2:
        - snippet:write
      - basic: []
      - api_key: []
      operationId: atlassianUpdateASnippet
  /snippets/{workspace}/{encoded_id}/comments:
    parameters:
    - name: encoded_id
      in: path
      description: The snippet id.
      required: true
      schema:
        type: string
    - name: workspace
      in: path
      description: 'This can either be the workspace ID (slug) or the workspace UUID

        surrounded by curly-braces, for example: `{workspace UUID}`.

        '
      required: true
      schema:
        type: string
    get:
      tags:
      - Snippets
      description: Used to retrieve a paginated list of all comments for a specific<br>snippet.<br><br>This resource works identical to commit and pull request comments.<br><br>The default sorting is oldest to newest and can be overridden with<br>the `sort` query parameter.
      summary: Atlassian List Comments On A Snippet
      responses:
        '200':
          description: A paginated list of snippet comments, ordered by creation date.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/paginated_snippet_comments'
        '403':
          description: If the authenticated user does not have access to the snippet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '404':
          description: If the snippet does not exist.
          content:
            application/json:
    

# --- truncated at 32 KB (182 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/openapi/atlassian-snippets-api-openapi.yml