Users > Profile

Complete driver registration. Create curernt driver’s profile.

POST create profile

Endpoint

POST /api/v1/users/profile

Parameters

Name Description
profile[first_name] required Profile first name
profile[last_name] required Profile last name
profile[postcode] required Profile postcode
profile[birth_date] required Profile birth date
profile[start_date] required Profile start date
profile[contact_phone_number] required Profile contact phone number

Request

Route

POST /api/v1/users/profile

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODU5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTU0LCJleHAiOjE3NDUwNTY5NTQsImp0aSI6IjYyNzNhYjdjLWM0ZWItNDc2OC1iYzVjLTMyYTcyYmVlODZkNCJ9.DaGhOf7blWj3k7ufrx6PZpTSTnRTt2RFuALpitUWq1k
Host: example.org
Cookie: 

Body

{
  "profile": {
    "first_name": "Virgie",
    "last_name": "Luettgen",
    "postcode": "123",
    "start_date": "2020-03-20T10:02:34.340Z",
    "birth_date": "2000-03-20T10:02:34.340Z",
    "contact_phone_number": "07856 207372"
  }
}

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"06634d4fe0a273304b1836e718fb6aaf"
cache-control: max-age=0, private, must-revalidate
x-request-id: 5b84cd14-ef9d-4560-b56e-76b853b3bd19
x-runtime: 0.019608
content-length: 1054

Body

{
  "profile": {
    "id": 707,
    "activities": [

    ],
    "bio": null,
    "birth_date": "2000-03-20",
    "child_safeguard_training": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "compliance_documents": [
      "dbs",
      "tacho",
      "enchanced_dbs",
      "cpc",
      "medical_check",
      "child_safeguard_training"
    ],
    "contact_phone_number": "07856 207372",
    "cpc": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "cv": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "dbs": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "documents": [

    ],
    "driving_license": [

    ],
    "email": ".+driver@example.com",
    "enchanced_dbs": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "english_level": null,
    "experiences": [

    ],
    "first_name": "Virgie",
    "interviews": [

    ],
    "last_name": "Luettgen",
    "licenses": [

    ],
    "medical_check": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "phone_number": null,
    "postcode": "123",
    "reviews": [

    ],
    "start_date": "2020-03-20",
    "tacho": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    }
  }
}