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,
    "user_has_offer": true,
    "is_company_driver": true,
    "is_approved": 11,
    "user_is_busy": true
  },
  "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,
    "user_has_offer": true,
    "is_company_driver": true,
    "is_approved": 11,
    "user_is_busy": true
  },
  "meta": {
    "status_code": 1,
    "status_message": "sample string 2"
  }
}