POST v1/company/driver/add

WEB - Add company driver

Request Information

URI Parameters

None.

Body Parameters

CompanyAddDriverRequestModel
NameDescriptionTypeAdditional information
company_driver

CompanyDriverModel

Required

user_company_id

Company UID of the active user

string

Required

Data type: Text

user_id

User ID (GUID)

string

Required

Data type: Text

user_signature

MD5 hash signature for the active user to validate the request

string

Required

Data type: Text

Request Format

application/json, text/json

Sample:
{
  "company_driver": {
    "company_driver_id": 1,
    "company_driver_cellnumber": "sample string 3",
    "company_driver_fullname": "sample string 4",
    "company_driver_user_id": "sample string 6",
    "company_driver_user_inc_id": 7,
    "company_driver_last_location_lat": 1.1,
    "company_driver_last_location_long": 1.1,
    "user_has_offer": true,
    "is_company_driver": true,
    "is_reliable_driver": true,
    "is_approved": 11,
    "user_is_busy": true,
    "create_user_uid": "sample string 13",
    "create_date": "2019-04-18T23:20:58.7328035+03:00",
    "create_user_name": "sample string 15",
    "user_assigned_vehicle_licence_plate": "sample string 17",
    "user_shipment_count": 18,
    "user_rating": 19,
    "company_driver_vehicle_id": 20
  },
  "user_company_id": "sample string 1",
  "user_id": "sample string 2",
  "user_signature": "sample string 3"
}

Response Information

Resource Description

WEB - Add company driver

BaseMetaResultModelOfCompanyDriverModel
NameDescriptionTypeAdditional information
response

CompanyDriverModel

None.

meta

Basic meta information for the operation result

MetaModel

None.

Response Format

application/json, text/json

Sample:
{
  "response": {
    "company_driver_id": 1,
    "company_driver_cellnumber": "sample string 3",
    "company_driver_fullname": "sample string 4",
    "company_driver_user_id": "sample string 6",
    "company_driver_user_inc_id": 7,
    "company_driver_last_location_lat": 1.1,
    "company_driver_last_location_long": 1.1,
    "user_has_offer": true,
    "is_company_driver": true,
    "is_reliable_driver": true,
    "is_approved": 11,
    "user_is_busy": true,
    "create_user_uid": "sample string 13",
    "create_date": "2019-04-18T23:20:58.7338021+03:00",
    "create_user_name": "sample string 15",
    "user_assigned_vehicle_licence_plate": "sample string 17",
    "user_shipment_count": 18,
    "user_rating": 19,
    "company_driver_vehicle_id": 20
  },
  "meta": {
    "status_code": 1,
    "status_message": "sample string 2"
  }
}