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}
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":"1c3523c3-10b4-4aba-8c99-35cf6fdd5233","url":null,"departmentUrl":null,"status":"Activated","creationDateTime":"2024-10-04T23:38:07.3393483Z","lastModifiedDateTime":"2024-10-04T23:38:07.3393483Z","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":"1aa80e3e-9c9b-460d-b590-3ea9263f2448","additionalDepartments":[{"id":"49bc02a4-28d1-451d-b39d-94a3a6a8604b","dataSource":"RelesysAPI"}],"userGroups":[{"id":"505d23ec-3c59-438d-8345-c3c019ce5f46","dataSource":"RelesysAPI"},{"id":"c3f24140-15cb-45c4-a2f9-c6c7a804d7c7","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