Update user role
put/v1/users/updateThis API allows you to modify the role of a specific user in your BoldSign organization user account.
Code snippet
curl -X 'PUT' \ 'https://api.boldsign.com/v1/users/update' \ -H 'accept: */*' \ -H 'X-API-KEY: {your API key}' \ -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \ -d '{ "userId": "77f0a721-xxxx-xxxx-xxxx-17fcb032xxxx", "userRole": "Admin" }'
var apiClient = new ApiClient("https://api.boldsign.com", "{apikey}"); var userClient = new UserClient(apiClient); var updateUser = new UpdateUser("77f0a721-xxxx-xxxx-xxxx-17fcb032xxxx", UserRoleType.Admin); userClient.UpdateUser(updateUser);
import boldsign configuration = boldsign.Configuration( api_key = "YOUR_API_KEY" ) with boldsign.ApiClient(configuration) as api_client: user_api = boldsign.UserApi(api_client) update_User = boldsign.UpdateUser( userId="YOUR_USER_ID", userRole="Admin" ) update_user_response = user_api.update_user( update_user=update_User )
const axios = require('axios'); const response = await axios.put( 'https://api.boldsign.com/v1/users/update', { 'userId': '77f0a721-xxxx-xxxx-xxxx-17fcb032xxxx', 'userRole': 'Admin' }, { headers: { 'accept': '*/*', 'X-API-KEY': '{your API key}', 'Content-Type': 'application/json;odata.metadata=minimal;odata.streaming=true' } } );
Request body
userIdstringRequired | The ID of the user account. |
userRolestringRequired | Represents a user role in their organization. |
Example response
200 Success