Relesys API Docs

v1.2

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

Users

Update User
PATCH /users/{userId}
https://api.relesysapp.net/api/v1.2/users/{userId}
Scopes: relesys.api, relesys.api:write, relesys.api.users, relesys.api.users:write
URL Path
userId string / guid 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"},{"value":{"customfieldone":"Custom field 1","customfieldtwo":"Custom field 2"},"path":"/customFields","op":"add"}]
array[object]
  from string optional
  op string optional
  path string optional
  value object optional
Responses
application/json
JSON
{"data":{"id":"ff8e198a-4b32-4097-9a1b-198c970494b7","url":null,"departmentUrl":null,"status":"Activated","creationDateTime":"2024-04-26T00:20:32.6269404Z","lastModifiedDateTime":"2024-04-26T00:20:32.6269404Z","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:00Z","primaryDepartmentId":"6c5bb880-6b0c-4187-bc00-c25d6f7d0f8f","additionalDepartments":[{"id":"4fb64072-84a5-41c8-aab5-014e871d108d","dataSource":"RelesysAPI"}],"userGroups":[{"id":"912a0ccc-53d3-4031-bc05-79190280c01c","dataSource":"RelesysAPI"},{"id":"e2a61dc7-fed3-4691-89a4-270b74f1e4d6","dataSource":"RelesysAPI"}],"employmentDate":"2018-12-30T13:30:00Z","employmentEndDate":"2021-12-30T13:30:00Z","customFields":{"customfieldone":"Custom field 1"}}}
object
  data object      
   additionalDepartments array[object]      
    dataSource string      
    id string / guid      
   birthDate datetime      
   customFields dictionary`2      
   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