Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Confluence API copy page causing 404 error


Trying to make a copy of a single page within the same confluence space using the API as exemplified here.

I'm getting this 404 error:

"null for uri:","status-code":404}'

My python code:

import requests
from requests.auth import HTTPBasicAuth
import json

url = ''
headers = {'Content-Type': 'application/json',
"Accept": "application/json;charset=UTF-8"}
auth = HTTPBasicAuth('username', 'password')
payload = json.dumps({
"destination": {
"type": "space",
"value": "MYSPACE"
response =, headers=headers, data=payload, auth=auth)
return response


I've tried copying many different pages with different ids and a couple different spaces without changing the error.

The URL '' has worked for my other API functions, as does my 'headers' and 'auth' parameters.

My company's instance of confluence is version 7.4.3

2 answers

1 accepted

2 votes
Answer accepted
Thomas Deiler Community Leader Oct 21, 2021

Dear @Woodson Miles ,

welcome to the community.

The endpoint 

GET /rest/api/content/{d}/copy

does not exist in the rest api reference. That's why it doesn't work. You are referencing to the CLOUD Api. Server is different.

To do what you want, you need to call first

GET /rest/api/content/{id}

read the page body, modify and then create with:

POST /rest/api/content

So long


ok, so this is not about the API, but REST API and therefore not what I was looking for...

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events