Update Non-Employee Record

PUT {{baseUrl}}/non-employee-records/:id

This request will update a non-employee record. There are two contextual uses for this endpoint: 1. The user has the role context of idn:nesr:update, in which case they update all available fields. 2. The user is owner of the source, in this case they can only update the end date.

Request Body

{"accountName"=>"william.smith", "firstName"=>"William", "lastName"=>"Smith", "email"=>"william.smith@example.com", "phone"=>"5555555555", "manager"=>"jane.doe", "sourceId"=>"2c91808568c529c60168cca6f90c1313", "startDate"=>"2020-03-24T00:00:00-05:00", "endDate"=>"2021-03-25T00:00:00-05:00", "data"=>{"description"=>"Auditing"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"id":"ef38f94347e94562b5bb8424a56397d8","accountName":"Abby.Smith","firstName":"William","lastName":"Smith","email":"william.smith@example.com","phone":"5555555555","manager":"jane.doe","sourceId":"2c91808568c529c60168cca6f90c1313","data":{"description":"Auditing"},"startDate":"2019-08-23T18:52:59.162Z","endDate":"2020-08-23T18:52:59.162Z","modified":"2019-08-23T18:52:59.162Z","created":"2019-08-23T18:40:35.772Z"}