Relesys API Docs

v1

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

Users

Update User
PATCH /users/{userId}
https://api.relesysapp.net/api/v1/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":"202ac2f0-748c-452f-8393-180f9366e174","url":null,"departmentUrl":null,"status":"Activated","creationDateTime":"2025-05-02T02:09:46.823457Z","lastModifiedDateTime":"2025-05-02T02:09:46.823457Z","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":"35599c65-dfcd-4ed6-9f89-d590e424bbef","additionalDepartments":[{"id":"22ff3c6e-aef8-4c97-943f-980a11e6edc4","dataSource":"RelesysAPI"}],"userGroups":[{"id":"5d3d281b-0ad0-4e8a-939e-5d1aec1e1a03","dataSource":"RelesysAPI"},{"id":"36fc1d66-d706-4371-9024-aabd0aafa8fd","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