You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello all,
I am trying to update a Confluence page in a space using the v2 API. I am sending a request as such:
{
"spaceId": space_id,
"status": "current",
"title": title,
"parentId": parent_page_id,
"body": {
"representation": "storage",
"value": content,
}
}
I am getting a response that the value provided for `spaceId` is not of the correct type:
('Reporting failed:\n', {'errors': [{'status': 400, 'detail': '', 'title': "Provided value {~62e7fe2b96eb272011a77ba7} for 'spaceId' is not the correct type. Expected type is Long", 'code': 'INVALID_REQUEST_BODY'}]})
However, I believe that this is indeed the correct spaceId - it works with v1 of the API.
It turns out I was actually trying to use the "space key" instead of the "space id"; they are separate values
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.