/roles/{userId}/{roleId}/add with the documented body, query parameters, headers, or multipart fields. Prefer the newer authenticated /v1/... integration API where available.{ status, message, data } wrapper.400 invalid request body, query, ObjectId, pagination, file format, or missing required field.401 missing, invalid, expired, or insufficient API key/token.403 key is valid but cannot access this community/channel/user/resource, where supported by the service.404 route or target resource was not found. Several legacy root routes returned 404 on https://api.returning.ai during smoke testing and need backend confirmation before external use.409 duplicate or conflicting state for create/update operations, where applicable.500 unexpected Returning.AI service error./v1/... endpoint in the matching non-Legacy category when one exists.curl --location --request POST 'https://api.returning.ai/roles/1106/682d69d6f91d6de701b91391/add' \
--header 'x-api-key;'{
"meta": {
"success": true,
"message": "Role has been added to user successfully",
"devMessage": "Role has been added to user successfully"
},
"body": {
"_id": "{_id}",
"name": "Reti Him",
"email": "lazosa@uiemail.com",
"displayname": "lazosa",
"first": "Reti",
"last": "Him",
"nicename": "lazosa",
"signup_date": "2025-04-30T04:54:51.777Z",
"last_login": "2025-04-30T08:27:33.138Z",
"isVerified": true,
"joinServer": true,
"createdAt": "2025-04-30T04:54:51.780Z",
"updatedAt": "2025-04-30T08:49:00.165Z",
"id": "{id}",
"__v": 0,
"badges": {},
"server_roles": []
}
}