Roles

Get Role

This endpoint retrieves data of a specific Role based on JSON input. The API returns a single Role available to the user, according to the unique ID provided. If the specified Role does not exist, the response will be a "bad request".

You will only receive the Role's information after first providing the Session Key. To know how you can obtain the Session Key, go to Authentication.

HEADERS

ParameterValueDescription
Content-Typeapplication/jsonLanguage in which all request and response bodies are encoded
Accept*/*Any data of whatever mime type is accepted
X-Session-KeyAUTH_TOKENThis field must be completed with the token obtained at the authentication
X-FM-Entity-Count{number}The number of records to return in each page of results. The default page limit is 50

REQUEST

ParameterTypeDescription
idintegerThe unique and specific identifier of the Role

RESPONSE BODY

AttributeTypeDescription
branchesObjectList of the Role Branches
extIdIntegerExternal ID of the Role from a third party system (ERP, CRM, Accounting System)
idIntegerThe unique identifier of the Role in ForceManager
levelIntegerBetween 1-5. The priority of this role, being 1 minor and 5 major
nameStringThe name of the role
dateCreatedStringDate and time when the Role was created
dateDeletedStringDate and time when the Role was deleted
dateUpdatedStringDate and time when the Role was last updated
deletedBooleanIf true, the Role has been deleted and archived
salesRepIdCreatedIntegerUnique identifier of the user who created 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
get/roles/{ID}

Request

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

Headers

Acceptstring
X-FM-Entity-Countstring

Response

Get Role

Changes

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