Logo
IdentityNow API Documentation

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.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




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" }



Curl
curl -X PUT 'https://tenant.api.identitynow.com/v3/non-employee-records/:id' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"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"}}'

ENDPOINTS