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

BadRequestException: Error occurred when updating content property content-appearance-draft Edited

I am using REST API of the confluence cloud for creating a new page. Sometimes (not always) I have an error in response

"statusCode": 400,
"data": {
"authorized": false,
"valid": true,
"errors": [],
"successful": false
"message": "com.atlassian.confluence.api.service.exceptions.BadRequestException: Error occurred when updating content property content-appearance-draft. Cannot create new content property, see{id}/property-create for usage. Property : JsonContentProperty{id='null', key='content-appearance-draft', content=ExpandedReference{idProperties={id=ContentId{id=1432322065}, version=EmptyReference{referentClass=class com.atlassian.confluence.api.model.content.Version}, status=current}, of=some(Content{id='ContentId{id=1432322065}', type=page, title='postman page 04', status=current, space=ExpandedReference{idProperties={key=~117839248}, of=some(Space{key='~117839248', name='null'})}, history=EmptyReference{referentClass=class com.atlassian.confluence.api.model.content.History}, version=EmptyReference{referentClass=class com.atlassian.confluence.api.model.content.Version}, ancestors=[Content{id='ContentId{id=1426130768}', type=null, title='null', status=current, space=EmptyReference{referentClass=class com.atlassian.confluence.api.model.content.Space}, history=EmptyReference{referentClass=class com.atlassian.confluence.api.model.content.History}, version=EmptyReference{referentClass=class com.atlassian.confluence.api.model.content.Version}, ancestors=null (CollapsedList), container=EmptyReference{referentClass=interface com.atlassian.confluence.api.model.content.Container}, childTypes={}}], container=EmptyReference{referentClass=interface com.atlassian.confluence.api.model.content.Container}, childTypes={}})}, version=null} , isSuccessful: false, isAuthorized: false, isValid: false, hasErrors: true, Errors: \"jsonproperty.duplicate.key\""

I am using Postman, the request body is like this:

{ "type":"page",
"title":"postman page 04",
"metadata": { "properties": {
"editor" : {
"key": "editor",
"value" : "v2" },
"key": "content-appearance-draft",
"value" : "full-width" },
"key": "content-appearance-published",
"value" : "full-width" }


"value":"<h2>Title</h2><br/># subtitle (2021-06-10)\n <br/>- <a href=\"http://localhost:8080\">http://localhost:8080</a> text1 <br/> ",
"representation":"storage" }}}

Could you help me to understand what is wrong?

0 answers

Suggest an answer

Log in or Sign up to answer
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! ...

190 views 6 8
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