The user needs to update an API Portal (SaaS) User via PAPI.
In detail, they want to change its role from OrgAdmin (RoleId: 00000005-0005-0005-0005-000000000005) to Developer (RoleId: 00000006-0006-0006-0006-000000000006).
They followed both the instructions stated in the documentation https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-developer-portal/5-2/portal-apis/portal-api-papi/papi-swagger-file-522.html (PUT on /Users resource) and also the info found in the PAPI page. Anyway, we obtained an error while updating the user; here are the details about the PUT request and the error obtained.
Request:
- Endpoint: https://<Portal_Host>/Users('18a7348f-e30f-4f9b-a0c3-36acf93ff489')
- Payload:
{
"Uuid": "18a7348f-e30f-4f9b-a0c3-36acf93ff489",
"FirstName": "XXX",
"LastName": "YYY",
"Username": "XXXYYYTest",
"Email": "userXXX@hotmail.com",
"RoleUuid": "00000006-0006-0006-0006-000000000006",
"OrganizationUuid": "0297a922-8f21-4932-b7f9-60564c6ed7f6",
"NotifyUser": true,
"Locale": "en",
"Status": "ENABLED"
}
Response:
- HTTP Status: 500
- Payload:
{
"error" : {
"code" : "ServerErrorException", "message" : {
"lang" : "en-US", "value" : "Internal Server Error"
}
}
}