Relesys API Docs

v1.3

https://api.uat.relesystest.net/api/v1.3

Users

Update User
PATCH /users/{userId}
https://api.uat.relesystest.net/api/v1.3/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":"d83713c0-e240-4a1c-801a-63c4a0dc9eeb","url":null,"departmentUrl":null,"status":"Activated","creationDateTime":"2026-04-15T18:15:26.6873429Z","lastModifiedDateTime":"2026-04-15T18:15:26.6873429Z","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":"5c39d77b-bede-44fe-86be-fe908887fa6d","additionalDepartments":[{"id":"15df9971-7ccd-44d4-bcd9-f9277b1f94d9","dataSource":"RelesysAPI"}],"userGroups":[{"id":"604a3fc7-4191-4400-98d5-ec25d9f151d4","dataSource":"RelesysAPI"},{"id":"2f4ad5cd-d221-4b68-8188-fe68ec5a26fc","dataSource":"RelesysAPI"}],"employmentDate":"2018-12-30T13:30:00Z","employmentEndDate":"2021-12-30T13:30:00Z","customFields":{"customfieldone":"Custom field 1"},"employmentType":"Full-time manager"}}
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      
   employmentType string      
   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