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.eyJzdWIiOiIxODY5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDc5LCJleHAiOjE3NjM1NDI0NzksImp0aSI6IjdiZDI2MzkxLTk5NmUtNDE2ZS05OWFlLWM3MmYxZmM5NTE5YyJ9.OBG4WTmqel5gvu2CN0Ez47Yn-5zgb_l5j_a0yV53vjA
Host: example.org
Cookie: 

Body

{
  "profile": {
    "first_name": "Jacklyn",
    "last_name": "Grant",
    "postcode": "123",
    "start_date": "2020-10-20T08:54:39.483Z",
    "birth_date": "2000-10-20T08:54:39.483Z",
    "contact_phone_number": "07727 487655"
  }
}

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/"d6a8c91412916bfd632a3af9e27d0c1f"
cache-control: max-age=0, private, must-revalidate
x-request-id: 67800dc0-df44-47d0-b5f7-de04e98b4320
x-runtime: 0.019805
content-length: 1052

Body

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

    ],
    "bio": null,
    "birth_date": "2000-10-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": "07727 487655",
    "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": "Jacklyn",
    "interviews": [

    ],
    "last_name": "Grant",
    "licenses": [

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

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