Create custom content via REST API v2 - INVALID_REQUEST_PARAMETER

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

Hello @thomas,

Do you want to use custom content in a Connect App or a Forge one?

If it is a Connect app, the type is of the format ac:${APP_KEY}:${CUTSOM_CONTENT_KEY} (doc)

If it is a Forge one, the format you have seems to be the right one.

I’m going to use Forge. However the REST API method doesn’t specify that it can’t be used without Forge or Connect!