Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Aleksandar Salevski July 7, 2021

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

2 votes
marc -Collabello--Phase Locked-
Community Champion
July 7, 2021

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

Aleksandar Salevski July 8, 2021

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" },

Sunny Ape
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 8, 2021

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.

Aleksandar Salevski July 8, 2021

David, i assumed that but tnx for the clarification!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events