Error publishing web request. Response HTTP status:
400
Error response HTTP body:
{"statusCode":400,"data":{"authorized":true,"valid":true,"errors":[],"successful":true},"message":"com.atlassian.confluence.api.service.exceptions.BadRequestException: Invalid status 'null'. The status must be one of [current,draft]."}
Invalid Name/Color, non-existent id of content state, or type of state desired is not allowed. Name must be less than or exactly 20 characters. Color must be a valid hex string. Status must be in [draft,current].
For those wondering what is wrong, Atlassian's documentation for setting content state of a Confluence page is missing /state?status=current in the web request URL. As displayed in RED in the screenshot below:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.