As shown in the API below, I am specifying "representation": "wiki", but I am having trouble because it is not converted.
Please tell me how to solve it.
api
body_value=$(cat textfile)
curl POST "https://${DOMAIN}/wiki/api/v2/pages" \
--user "${USER}:${TOKEN}" \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data @- <<EOS
{
"spaceId": "xxx",
"status": "current",
"title": "markdown test",
"parentId": "xxx"
"body": {
"representation": "wiki",
"value": "${body_value}"
}
}
textfile
result
Hi @Tomiyama Yuichi _SQEX_ - Welcome to the Atlassian Community!
See if this article helps any:
https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.