Not able to update user role in community through API

Hi,

I am trying to update a community role in swagger and pass my admin token in BearerAuth but it keeps on failing with authorization error. Right server region is selected from dropdown. See following curl

curl -X 'POST' \
  'https://api.eu.amity.co/api/v3/communities/65623a469ad025e5512235f5/users/roles' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "role": "moderator",
  "userIds": [
    "654_32"
  ]
}'
{
  "status": "error",
  "message": "Authorization info not found",
  "code": 400100,
  "data": {
    "detail": {
      "appErrorCode": 400100
    }
  }
}

Hello,

Do you want to update the user from a ‘Member’ to a ‘Community Moderator’? If you want to change it to a Community Moderator, we recommend you try following the example curl below :

curl --location 'https://api.sg.amity.co/api/v3/communities/65423b2980bf8c792482b48d/users/roles' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxx' \
--data '{
  "role": "community-moderator",
  "userIds": [
    "test"
  ]
}'

Can you please confirm if the admin token you’re using is generated from the console? If it is, we recommend using Postman, as Swagger can sometimes cause issues.

Best regards,

Support Team