Forums

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

Calling update_or_create() on an archived page - error returned?

Craig Anderson
Contributor
January 30, 2023

I'm calling the Python API update_or_create on a page which has been archived.

I'm getting an exception: atlassian.errors.ApiNotFoundError

The exception message is "Can not find draft with current content".

Looking through the Atlassian code, I see that it is testing if the page exists.  It does, then the code tries to update the page, which fails.

 

Anyone else encounter this?

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Champion
January 31, 2023

Hi @Craig Anderson ,

an archived page is not retrieved in the search and it could impact also the api. This should be the cause.

Fabio

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events