{
  "opencollection": "1.0.0",
  "info": {
    "name": "Atlassian Admin Account Content - Macro Body API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Content - Macro Body",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Atlassian Get Macro Body By Macro Id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.atlassian.com/wiki/rest/api/content/:id/history/:version/macro/id/:macroId",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID for the content that contains the macro."
              },
              {
                "name": "version",
                "value": "",
                "type": "path",
                "description": "The version of the content that contains the macro. Specifying `0` as the `version` will return\nthe macro body for the latest content version."
              },
              {
                "name": "macroId",
                "value": "",
                "type": "path",
                "description": "The ID of the macro. This is usually passed by the app that the\nmacro is in. Otherwise, find the macro ID by querying the desired\ncontent and version, then expanding the body in storage format.\nFor example, '/content/196611/version/7?expand=content.body.storage'."
              }
            ]
          },
          "docs": "Returns the body of a macro in storage format, for the given macro ID.<br>This includes information like the name of the macro, the body of the macro,<br>and any macro parameters. This method is mainly used by Cloud apps.<br><br>About the macro ID: When a macro is created in a new version of content,<br>Confluence will generate a random ID for it, unless an ID is specified<br>(by an app). The macro ID will look similar to this: '50884bd9-0cb8-41d5-98be-f80943c14f96'.<br>The ID is then persisted "
        },
        {
          "info": {
            "name": "Atlassian Get Macro Body By Macro Id And Convert The Representation Synchronously",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.atlassian.com/wiki/rest/api/content/:id/history/:version/macro/id/:macroId/convert/:to",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID for the content that contains the macro."
              },
              {
                "name": "version",
                "value": "",
                "type": "path",
                "description": "The version of the content that contains the macro. Specifying `0` as the `version` will return\nthe macro body for the latest content version."
              },
              {
                "name": "macroId",
                "value": "",
                "type": "path",
                "description": "The ID of the macro. This is usually passed by the app that the\nmacro is in. Otherwise, find the macro ID by querying the desired\ncontent and version, then expanding the body in storage format.\nFor example, '/content/196611/version/7?expand=content.body.storage'."
              },
              {
                "name": "to",
                "value": "",
                "type": "path",
                "description": "The content representation to return the macro in."
              },
              {
                "name": "expand",
                "value": "",
                "type": "query",
                "description": "A multi-value parameter indicating which properties of the content to expand and populate. Expands are dependent on the\n`to` conversion format and may be irrelevant for certain conversions (e.g. `macroRenderedOutput` is redundant when\nconverting to `view` format). \n\nIf rendering to `view` format, and the body content being converted includes arbitrary nested content (such as macros); then it is \nnecessary to include webresource expands in the request. Webresources for content body are the batched JS and CSS dependencies for\nany nested dynamic content (i.e. macros).\n\n- `embeddedContent` returns metadata for nested content (e.g. page included using page include macro)\n- `mediaToken` returns JWT token for retrieving attachment data from Media API\n- `macroRenderedOutput` additionally converts body to view format\n- `webresource.superbatch.uris.js` returns all common JS dependencies as static URLs\n- `webresource.superbatch.uris.css` returns all common CSS dependencies as static URLs\n- `webresource.superbatch.uris.all` returns all common dependencies as static URLs\n- `webresource.superbatch.tags.all` returns all common JS dependencies as html `<script>` tags\n- `webresource.superbatch.tags.css` returns all common CSS dependencies as html `<style>` tags\n- `webresource.superbatch.tags.js` returns all common dependencies as html `<script>` and `<style>` tags\n- `webresource.uris.js` returns JS dependencies specific to conversion\n- `webresource.uris.css` returns CSS dependencies specific to conversion\n- `webresource.uris.all` returns all dependencies specific to conversion     \n- `webresource.tags.all` returns common JS dependencies as html `<script>` tags\n- `webresource.tags.css` returns common CSS dependencies as html `<style>` tags\n- `webresource.tags.js` returns common dependencies as html `<script>` and `<style>` tags"
              },
              {
                "name": "spaceKeyContext",
                "value": "",
                "type": "query",
                "description": "The space key used for resolving embedded content (page includes,\nfiles, and links) in the content body. For example, if the source content\ncontains the link `<ac:link><ri:page ri:content-title=\"Example page\" /><ac:link>`\nand the `spaceKeyContext=TEST` parameter is provided, then the link\nwill be converted to a link to the \"Example page\" page in the \"TEST\" space."
              },
              {
                "name": "embeddedContentRender",
                "value": "",
                "type": "query",
                "description": "Mode used for rendering embedded content, like attachments.\n\n- `current` renders the embedded content using the latest version.\n- `version-at-save` renders the embedded content using the version at\nthe time of save."
              }
            ]
          },
          "docs": "Returns the body of a macro in format specified in path, for the given macro ID.<br>This includes information like the name of the macro, the body of the macro,<br>and any macro parameters.<br><br>About the macro ID: When a macro is created in a new version of content,<br>Confluence will generate a random ID for it, unless an ID is specified<br>(by an app). The macro ID will look similar to this: '50884bd9-0cb8-41d5-98be-f80943c14f96'.<br>The ID is then persisted as new versions of content are c"
        },
        {
          "info": {
            "name": "Atlassian Get Macro Body By Macro Id And Convert Representation Asynchronously",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.atlassian.com/wiki/rest/api/content/:id/history/:version/macro/id/:macroId/convert/async/:to",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID for the content that contains the macro."
              },
              {
                "name": "version",
                "value": "",
                "type": "path",
                "description": "The version of the content that contains the macro. Specifying `0` as the `version` will return\nthe macro body for the latest content version."
              },
              {
                "name": "macroId",
                "value": "",
                "type": "path",
                "description": "The ID of the macro. For apps, this is passed to the macro by the Connect/Forge framework.\nOtherwise, find the macro ID by querying the desired\ncontent and version, then expanding the body in storage format.\nFor example, '/content/196611/version/7?expand=content.body.storage'."
              },
              {
                "name": "to",
                "value": "",
                "type": "path",
                "description": "The content representation to return the macro in.\nCurrently, the following conversions are allowed:\n\n- `export_view`\n- `styled_view`\n- `view`"
              },
              {
                "name": "expand",
                "value": "",
                "type": "query",
                "description": "A multi-value parameter indicating which properties of the content to expand and populate. Expands are dependent on the\n`to` conversion format and may be irrelevant for certain conversions (e.g. `macroRenderedOutput` is redundant when\nconverting to `view` format). \n\nIf rendering to `view` format, and the body content being converted includes arbitrary nested content (such as macros); then it is \nnecessary to include webresource expands in the request. Webresources for content body are the batched JS and CSS dependencies for\nany nested dynamic content (i.e. macros).\n\n- `embeddedContent` returns metadata for nested content (e.g. page included using page include macro)\n- `mediaToken` returns JWT token for retrieving attachment data from Media API\n- `macroRenderedOutput` additionally converts body to view format\n- `webresource.superbatch.uris.js` returns all common JS dependencies as static URLs\n- `webresource.superbatch.uris.css` returns all common CSS dependencies as static URLs\n- `webresource.superbatch.uris.all` returns all common dependencies as static URLs\n- `webresource.superbatch.tags.all` returns all common JS dependencies as html `<script>` tags\n- `webresource.superbatch.tags.css` returns all common CSS dependencies as html `<style>` tags\n- `webresource.superbatch.tags.js` returns all common dependencies as html `<script>` and `<style>` tags\n- `webresource.uris.js` returns JS dependencies specific to conversion\n- `webresource.uris.css` returns CSS dependencies specific to conversion\n- `webresource.uris.all` returns all dependencies specific to conversion     \n- `webresource.tags.all` returns common JS dependencies as html `<script>` tags\n- `webresource.tags.css` returns common CSS dependencies as html `<style>` tags\n- `webresource.tags.js` returns common dependencies as html `<script>` and `<style>` tags"
              },
              {
                "name": "allowCache",
                "value": "",
                "type": "query",
                "description": "If this field is false, the cache will erase its current value and begin a conversion.\nIf this field is true, the cache will not erase its current value, and will set the status of the\nresult in cache to RERUNNING. Once the data is updated, the status will change to COMPLETED. \nLarge macros that take long to convert, and who want to show intermediate, but potentially stale data, immediately should set this field to true.\nCache values are stored per macro per user per content and expansions."
              },
              {
                "name": "spaceKeyContext",
                "value": "",
                "type": "query",
                "description": "The space key used for resolving embedded content (page includes,\nfiles, and links) in the content body. For example, if the source content\ncontains the link `<ac:link><ri:page ri:content-title=\"Example page\" /><ac:link>`\nand the `spaceKeyContext=TEST` parameter is provided, then the link\nwill be converted to a link to the \"Example page\" page in the \"TEST\" space."
              },
              {
                "name": "embeddedContentRender",
                "value": "",
                "type": "query",
                "description": "Mode used for rendering embedded content, like attachments.\n\n- `current` renders the embedded content using the latest version.\n- `version-at-save` renders the embedded content using the version at\nthe time of save."
              }
            ]
          },
          "docs": "Returns Async Id of the conversion task which will convert the macro into a content body of the desired format.<br>The result will be available for 5 minutes after completion of the conversion.<br><br>About the macro ID: When a macro is created in a new version of content,<br>Confluence will generate a random ID for it, unless an ID is specified<br>(by an app). The macro ID will look similar to this: '884bd9-0cb8-41d5-98be-f80943c14f96'.<br>The ID is then persisted as new versions of content are"
        }
      ]
    }
  ],
  "bundled": true
}