Relesys API Docs

v1.1

https://api.relesysapp.net/api/v1.1

Users

Update User
PATCH /users/{userId}
https://api.relesysapp.net/api/v1.1/users/{userId}
Update a user based on the ID provided. Accepts a JsonPatch request in the body.
Scopes: relesys.api, relesys.api:write, relesys.api.users, relesys.api.users:write
URL Path
userId string / guid The user's unique identifier required
Request Body
application/json-patch+json
JSON
[{"value":"My patched name","path":"/name","op":"add"},{"value":{"countryCode":45,"number":"11223344"},"path":"/phoneNumber","op":"replace"},{"path":"/title","op":"remove"}]
array[object]
  from string optional
  op string optional
  path string optional
  value object optional
Responses
application/json
JSON
{"data":{"id":"8473e007-ef3b-4868-b2f3-592813940af5","url":null,"departmentUrl":null,"status":"Activated","creationDateTime":"2022-05-21T22:18:49.6020251+00:00","lastModifiedDateTime":"2022-05-21T22:18:49.6020251+00:00","externalId":"NUA","name":"New User A","userName":"UserNameA","title":"User Title A","dataSource":"RelesysAPI","email":"personalmaila@testmail.com","secondaryEmail":"businessmaila@testmail.com","phoneNumber":{"countryCode":45,"number":"12345678"},"secondaryPhoneNumber":{"countryCode":45,"number":"12345679"},"birthDate":"2002-12-30T00:00:00","primaryDepartmentId":"eb5f972c-ecfa-4625-b6e4-c6094961f173","additionalDepartments":[{"id":"ca1d6bf2-8515-4cef-a94c-b6a057e8df4e","dataSource":"RelesysAPI"}],"userGroups":[{"id":"b3a65422-154b-4902-8b17-442d3d319d06","dataSource":"RelesysAPI"},{"id":"0897f490-71e5-443b-8437-72eaf6382642","dataSource":"RelesysAPI"}],"employmentDate":"2018-12-30T13:30:00","employmentEndDate":"2021-12-30T13:30:00"}}
object
  data object      
   additionalDepartments array[object]      
    dataSource string      
    id string / guid      
   birthDate datetime      
   dataSource string      
   departmentUrl string      
   email string      
   employmentDate datetime      
   employmentEndDate datetime      
   externalId string      
   id string / guid      
   name string      
   phoneNumber object      
    countryCode integer      
    number string      
   primaryDepartmentId string / guid      
   secondaryEmail string      
   secondaryPhoneNumber object      
    countryCode integer      
    number string      
   status string      
   title string      
   url string      
   userGroups array[object]      
    dataSource string      
    id string / guid      
   userName string