I’m planning to experiment with custom content creation in Confluence.
https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-custom-content/#api-custom-content-post
In the wider documentation I found references to the type
naming convention. E.g.
forge:[APP_ID]:[ENVIRONMENT_ID]:[MODULE_KEY].
for Forge. However no hint for the plain REST API v2 call.
I’m getting INVALID_REQUEST_PARAMETER
and No ContentTypeBinding found for type
.
Is there more documentation or can anyone please provide a working example using curl?
curl --request POST \
--url 'https://{your-domain}/wiki/api/v2/custom-content' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"type": "<string>",
"status": "current",
"spaceId": "<string>",
"pageId": "<string>",
"blogPostId": "<string>",
"customContentId": "<string>",
"title": "<string>",
"body": {
"representation": "storage",
"value": "<string>"
}
}'
Cheers,
Thomas