I'm trying to use the RoleAssignments insert API. I've included the customer_id and the required request body, but I'm getting an error saying that resource.identity.identity_id is needed, even though it's not in the documentation.
Below are the example request body and the response. What is the cause of this, and how can I fix it?
request
{
"assignedTo": "[email protected]",
"roleId": "1234567890",
"scopeType": "CUSTOMER"
}
response
{
"error": {
"code": 400,
"message": "Required parameter: [resource.identity.identity_id]",
"errors": [
{
"message": "Required parameter: [resource.identity.identity_id]",
"domain": "global",
"reason": "required"
}
]
}
}