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":"79730bef-a851-4789-8972-2212f03b85e7","url":null,"departmentUrl":null,"status":"Activated","creationDateTime":"2022-10-06T14:06:14.8286419+00:00","lastModifiedDateTime":"2022-10-06T14:06:14.8286419+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":"26f91c87-94f1-4c08-83ad-c17ae7c94ad8","additionalDepartments":[{"id":"8ca408fa-e414-4bfa-803f-b0fd5052e2a8","dataSource":"RelesysAPI"}],"userGroups":[{"id":"2055caba-d680-483e-bc9d-490190aee12b","dataSource":"RelesysAPI"},{"id":"ac81067f-7371-400c-b32d-7bbd68fb1a6a","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