POST v1/admin/companies/vehicle-user-relation/list

ADMIN - List Company vehicle relation to user.

Request Information

URI Parameters

None.

Body Parameters

AdminListUserCompanyVehicleRelationRequestModel
NameDescriptionTypeAdditional information
company_vehicle_id

integer

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_vehicle_id": 1,
  "user_company_id": "sample string 2",
  "user_id": "sample string 3",
  "user_signature": "sample string 4"
}

Response Information

Resource Description

ADMIN - List Company vehicle relation to user.

BaseMetaResultModelOfListOfUserCompanyVehicleRelationModel
NameDescriptionTypeAdditional information
response

Collection of UserCompanyVehicleRelationModel

None.

meta

Basic meta information for the operation result

MetaModel

None.

Response Format

application/json, text/json

Sample:
{
  "response": [
    {
      "id": 1,
      "user_id": 2,
      "vehicle_id": 3,
      "start_date": "2018-05-21T13:45:02.5826578+03:00",
      "end_date": "2018-05-21T13:45:02.5826578+03:00",
      "is_indefinite": true,
      "is_active": true
    },
    {
      "id": 1,
      "user_id": 2,
      "vehicle_id": 3,
      "start_date": "2018-05-21T13:45:02.5826578+03:00",
      "end_date": "2018-05-21T13:45:02.5826578+03:00",
      "is_indefinite": true,
      "is_active": true
    }
  ],
  "meta": {
    "status_code": 1,
    "status_message": "sample string 2"
  }
}