Confluence Rest API Copy single page endpoint doesn't support new content type (folder, whiteboard and database) as a destionation type

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      Using the copy single page endpoint in the confluence rest api

      'https://your-domain.atlassian.net/wiki/rest/api/content/{id}/copy'

      In order to move the page to an existing folder, the destination type doesn't accept the folder as a type. 

      The same applies to databases and whiteboards.

      Steps to Reproduce

      1. Call the API using the destination, and using the types: 'folder', 'database' or 'whiteboard'

      Expected Results

      Endpoint returns 200, and move the page to the provided content id in the request

      Actual Results

      Endpoint returns 400, and the page doesn't move

      The below exception is thrown in the xxxxxxx.log file:

      {    "statusCode": 400,    "data": {        "authorized": true,        "valid": true,        "errors": [],        "successful": true    },    "message": "com.atlassian.confluence.api.service.exceptions.BadRequestException: Invalid destination"} 

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Nick Bourlier
            Reporter:
            Emmanuel Bellezza
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: