Skip to main content

Update Non-Employee Record

PUT 

/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

Path Parameters

    id stringrequired

    Non-employee record id (UUID)

    Example: ef38f94347e94562b5bb8424a56397d8

Body

required

Non-employee record creation request body. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields.

    accountName stringrequired

    Requested identity account name.

    firstName stringrequired

    Non-Employee's first name.

    lastName stringrequired

    Non-Employee's last name.

    email stringrequired

    Non-Employee's email.

    phone stringrequired

    Non-Employee's phone.

    manager stringrequired

    The account ID of a valid identity to serve as this non-employee's manager.

    sourceId stringrequired

    Non-Employee's source id.

    data

    object

    Additional attributes for a non-employee. Up to 10 custom attributes can be added.

    property name* string
    startDate date-timerequired

    Non-Employee employment start date.

    endDate date-timerequired

    Non-Employee employment end date.

Responses

An updated non-employee record.

Schema

    id UUID

    Non-Employee record id.

    accountName string

    Requested identity account name.

    firstName string

    Non-Employee's first name.

    lastName string

    Non-Employee's last name.

    email string

    Non-Employee's email.

    phone string

    Non-Employee's phone.

    manager string

    The account ID of a valid identity to serve as this non-employee's manager.

    sourceId string

    Non-Employee's source id.

    data

    object

    Additional attributes for a non-employee. Up to 10 custom attributes can be added.

    property name* string
    startDate date-time

    Non-Employee employment start date.

    endDate date-time

    Non-Employee employment end date.

    modified date-time

    When the request was last modified.

    created date-time

    When the request was created.

Loading...