Assign role to user
POST
/roles/users/{userId}/roles
const url = 'https://shoehorn.example.com/api/v1/roles/users/example/roles';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://shoehorn.example.com/api/v1/roles/users/example/rolesParameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” userId
required
string
Responses
Section titled “ Responses ”Role assigned