Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to change history(createdDate, createdby) in page with PUT REST API

Hi,

From the official Atlassian documentation (https://developer.atlassian.com/cloud/confluence/rest-api-examples/), i used 

"history": {

"createdBy": {

"displayName": "A. D. Ministrator",

"profilePicture": { "height": 48, "isDefault": true,

"path": "/confluence/s/en_GB-1988229788/4960/NOCACHE1/_/images/icons/profilepics/default.png", "width": 48 },

"type": "known",

"username": "admin" },

"createdDate": "2014-03-10T23:14:35.031+1100",

"latest": true },

 

 

But no success in changing either the date or author of the page.

SS, https://paste.pics/5080ba3d008f3ecc2e0b74c38416ca9b

 

BR,

Alex

1 answer

@Aleksandar SalevskiYou can't change history through the API.  You can only read the history.

Hi,

Tnx for the confirmation, i have another question related to this is it possible to change the author/createdBy with rest API 

 

"createdBy": {

"displayName": "A. D. Ministrator",

"profilePicture": { "height": 48, "isDefault": true,

"path": "/confluence/s/en_GB-1988229788/4960/NOCACHE1/_/images/icons/profilepics/default.png", "width": 48 },

"type": "known",

"username": "admin" },

Hello @Aleksandar Salevski 

No, you can't use the REST API to change a page's createdBy, it is an immutable value that you can only read from the page history. Refer to this article where it's been discussed before, and there is also a link to this feature request to be able to change the page creator.

If you want more information about what aspects of Confluence content you can or can't change, the best place to start is the REST API documentation which describes updating content.

David, i assumed that but tnx for the clarification!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

🏑 Atlympic Event: Confluence

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

451 views 18 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you