API for restoring a content version fails with confusing error

When I use the restore content version API endpoint for confluence cloud, I get this error:

'RESTORE' is not supported, Supported operations are 'RESTORE'

The payload is this:
{ operationKey: 'RESTORE', params: { versionNumber: 2, message: "Testing content update" } }
Thoughts?

1 Like

Hi kshehadeh,

I have tried this endpoint myself and ended up with the same result as you describe. Then I just tried to supply the operationKey parameter value in lower case, i.e. instead of RESTORE I passed restore and got 200 response and everything worked. Seems like the documentation is not accurate at this point.

Please let me know if it helped you.

Vojtěch Schlemmer [MoroSystems, s.r.o., Czech Republic]