I was trying to create an account via access request. However, I am encountering this error even though the HTTP body is populated. I was also able to successfully call the API in postman.
I tried to hardcode the values for name and siteRole and it is working fine when I tried to request an access. I am not sure why the error log is saying “Required request body is missing” when I try to use the attributes from my Create Account provisioning plan.
if not working, then see what you can find in CCG log.
You may need to create and attach a Web Service Before Operation rule to the create HTTP Operation, so you can see exactly the headers and body of the request you are sending.
Hi @rkhade! I am getting the correct attribute values as per the logs. However, when I look at the error message, it seems that it is not seeing or passing those attributes.
Logs for Attributes:
Error message:
“message”:“Updating account null result with error message {"error":{"summary":"Bad Request","detail":"Payload is either malformed or incomplete","code":"400000"}”
It looks like it this attribute is not getting passed in the body. I am not sure why it is happening since this is working correctly in postman.
As the id is not passed while creating account, it needs to be fetched from create account response body and pass to the next operations.
Can you check the response mapping of create account operation once, you can use JSON path finder for this, if its correct.
Try configuring get Object operation, Which will fetch the single the account details once the account is created, Use fetch single account API for configuration.
As the same body is working with hardcoded values, looks like the error is thrown by some other operation(Add Entitlement, update Account) after create operation, can you check those operations or remove those operation and test.