Relesys API Docs

v1.2

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

Departments

Create Department
POST /departments
https://api.relesysapp.net/api/v1.2/departments
Create a department if the model is valid.
Scopes: relesys.api, relesys.api:write, relesys.api.users, relesys.api.users:write
Request Body
application/json
object
  addressLine string optional
  addressLine2 string optional
  city string optional
  contentCulture string optional
  defaultPhoneCountryCode integer optional
  email string optional
  externalId string optional
  locales array[object] optional
   culture string optional
   description string optional
  managerUserId string / guid optional
  name string required
  parentId string / guid optional
  phoneNumber object optional
   countryCode integer optional
   number string optional
  selectedCultures array[string] optional
  showDepartmentInTaggingOverview boolean optional
  showDepartmentManagerPublic boolean optional
  showEmployeeList boolean optional
  showInActivityStatistics boolean optional
  showInContacts boolean optional
  showInHighscores boolean optional
  showUsersInTaggingOverview boolean optional
  timeZone string optional
  type string required
  uiCulture string optional
  userLanguageEnabled boolean optional
  zipCode string optional
Responses
application/json
JSON
{"data":{"id":"ffc9209e-8955-41aa-a483-5e270cfeca94","url":null,"creationDateTime":"2024-04-23T03:47:53.4843117Z","lastModifiedDateTime":"2024-04-23T03:47:53.4843117Z","name":"Relesys Main HQ","parentId":"6d4fedd0-8cce-420a-8a9b-23ad274eceac","externalId":"HQ","addressLine":"Relesys Road 10","addressLine2":"2nd floor","zipCode":"2920","city":"Relecity","defaultPhoneCountryCode":45,"phoneNumber":{"countryCode":45,"number":"12345678"},"managerUserId":"3aed725b-a66e-4dbf-80a0-d8c98c29f71c","showInContacts":true,"showInHighscores":true,"showInActivityStatistics":true,"contentCulture":"da-dk","uiCulture":"da-dk","type":"Company","timeZone":"UTC","email":"Test@test.com","userLanguageEnabled":true,"selectedCultures":["da-DK","en-GK"],"showDepartmentManagerPublic":false,"showEmployeeList":true,"showDepartmentInTaggingOverview":true,"showUsersInTaggingOverview":true,"locales":[{"culture":"en-GB","description":"Example description"}]}}
object
  data object      
   addressLine string      
   addressLine2 string      
   city string      
   contentCulture string      
   creationDateTime datetime      
   defaultPhoneCountryCode integer      
   email string      
   externalId string      
   id string / guid      
   lastModifiedDateTime datetime      
   locales array[object]      
    culture string      
    description string      
   managerUserId string / guid      
   name string      
   parentId string / guid      
   phoneNumber object      
    countryCode integer      
    number string      
   selectedCultures array[string]      
   showDepartmentInTaggingOverview boolean      
   showDepartmentManagerPublic boolean      
   showEmployeeList boolean      
   showInActivityStatistics boolean      
   showInContacts boolean      
   showInHighscores boolean      
   showUsersInTaggingOverview boolean      
   timeZone string      
   type string      
   uiCulture string      
   url string      
   userLanguageEnabled boolean      
   zipCode string