Creation of Space when a ticket is closed via POST

Encountering this error when trying to do automation for creating confluence space once a ticket is closed.

Encountering this error:

{
   "statusCode":400,
   "data":{
      "authorized":true,
      "valid":false,
      "errors":[
         {
            "message":{
               "key":"You must specify a title for new content.",
               "args":[
                  
               ]
            }
         }
      ],
      "successful":false
   },
   "message":"com.atlassian.confluence.api.service.exceptions.BadRequestException: Could not create content with type page"
}

Reference: How to create Confluence page automatically with JIRA issue content once JIRA issue created | Jira | Atlassian Documentation