Roles

Add Roles in User

This endpoint allows you to update a specific User's Roles information from the user's ForceManager account database. If the specified User does not exist, the response will be a "bad request". In order to update the User's Roles, you just have to specify the Role you want to add at.

You will only be able to update the User's Roles after first providing the Session Key. To know how you can obtain the Session Key, go to Authentication.

HEADERS

ParameterTypeDescription
Content-Typeapplication/jsonLanguage in which all request and response bodies are encoded
Accept*/*The acceptance
X-Session-KeyAUTH_TOKENThis field must be completed with the token obtained at the authentication

REQUEST

This endpoint allows updating the information of a specific User's Roles. In order to update the User's Roles, you just have to specify the Role you want to add at.

AttributeTypeDescription
rolesIdObjectArray of the Roles Id that you want to add for a specific User

RESPONSE

Returns a JSON with information with the User Roles.

AttributeTypeDescription
branchesArrayBranch to which the User has been assigned
dateCreatedStringDate and time when the User's Role was associated
dateDeletedStringDate and time when the User's Role was deleted
dateUpdatedStringDate and time when the User's Role was updated
deletedBooleanIf true, the User's Role has been deleted and archived
extIdStringExternal ID of the Role from a third party system (ERP, CRM, Accounting System)
idIntegerThe unique identifier of the Role in ForceManager
levelBooleanIf true, the User is billable. ForceManager charges a fee for the user
nameStringThe Role name
salesRepIdCreatedIntegerUnique identifier of the user who associated the Role
salesRepIdDeletedIntegerUnique identifier of the user who deleted the Role
salesRepIdUpdatedIntegerUnique identifier of the user who updated the Role

RESPONSE CODES

StatusDescription
200 OKShows if operation succeeded
400 Bad RequestShows when an invalid request or the requested service is not available
put/users/{ID}/roles

Request

  • Base URL: https://api.forcemanager.com/api/v4
  • URL: https://api.forcemanager.com/api/v4/users/{ID}/roles
  • Auth: API key in header X-Session-Key

Headers

Acceptstring
X-FM-Entity-Countstring

Request body

Response

Add Roles in User

Changes

No recorded changes to this operation across all 1 revision of this API.