Skip to main content
POST
/
v1
/
Scheduling
/
drivers
Add New Driver
curl --request POST \
  --url https://qa-lynx.nayax.com/operational/v1/Scheduling/drivers \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "UserId": 123,
  "OperatorId": 123,
  "DriverStatusId": 123,
  "StartDate": "<string>",
  "DriverLicense": "<string>",
  "IdNumber": "<string>",
  "Skills": [
    123
  ],
  "WorkingHours": [
    {
      "Day": 123,
      "Enabled": true,
      "Hours": [
        {
          "StartHour": "<string>",
          "EndHour": "<string>"
        }
      ]
    }
  ]
}
'
{
  "Id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "DistributorId": 123,
  "OperatorId": 123,
  "OperatorName": "<string>",
  "UserId": 123,
  "FullName": "<string>",
  "Mobile": "<string>",
  "Email": "<string>",
  "DriverLicense": "<string>",
  "IdNumber": "<string>",
  "Img": "<string>",
  "DriverStatusId": 123,
  "StartDate": "<string>",
  "Skills": [
    123
  ],
  "WorkingHours": "<string>",
  "CreatedBy": 123,
  "CreatedDt": "2023-11-07T05:31:56Z",
  "UpdatedBy": 123,
  "UpdatedDt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Enter your API key. It's required to authenticate API requests.

Body

application/json
UserId
integer<int64>

The unique identifier of the user associated with the driver.

OperatorId
integer<int64>

The unique identifier of the operator associated with the driver.

DriverStatusId
integer<int32> | null

The status identifier of the driver, indicating their current status.

StartDate
string | null

The date when the driver started working.

DriverLicense
string | null

The driver's license number of the driver.

IdNumber
string | null

The identification number of the driver.

Skills
integer<int32>[] | null

A list of skill identifiers associated with the driver.

WorkingHours
object[] | null

A list of working days and hours for the driver.

Response

200 - application/json

The newly added driver details.

Id
string<uuid>

The unique identifier of the driver.

DistributorId
integer<int64>

The unique identifier of the distributor associated with the driver.

OperatorId
integer<int64>

The unique identifier of the operator associated with the driver.

OperatorName
string | null

The name of the operator associated with the driver.

UserId
integer<int64>

The unique identifier of the user associated with the driver.

FullName
string | null

The full name of the driver.

Mobile
string | null

The mobile phone number of the driver.

Email
string | null

The email address of the driver.

DriverLicense
string | null

The driver's license number of the driver.

IdNumber
string | null

The identification number of the driver.

Img
string | null

The URL to the driver's image.

DriverStatusId
integer<int32> | null

The status identifier of the driver, indicating their current status.

StartDate
string | null

The date when the driver started working.

Skills
integer<int32>[] | null

A list of skill identifiers associated with the driver.

WorkingHours
string | null

The working hours of the driver.

CreatedBy
integer<int64>

The identifier of the user who created the driver entry.

CreatedDt
string<date-time>

The date and time when the driver entry was created.

UpdatedBy
integer<int64> | null

The identifier of the user who last updated the driver entry.

UpdatedDt
string<date-time> | null

The date and time when the driver entry was last updated.