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.eyJzdWIiOiIxODkwIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjI5LCJleHAiOjE3NTU4NTgyMjksImp0aSI6IjU1ZGM1MDdmLTVjMzUtNDg3NC04YWI0LTUwZTA4Njc4MWFiNSJ9.JhDNeuZkFY-iP0OxEWk5AygGsBa_IXo8cTwAtrZYqA0
Host: example.org
Cookie: 

Body

{
  "profile": {
    "first_name": "Nickolas",
    "last_name": "Yundt",
    "postcode": "123",
    "start_date": "2020-07-23T10:23:49.653Z",
    "birth_date": "2000-07-23T10:23:49.653Z",
    "contact_phone_number": "07941 392334"
  }
}

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/"320446073435e885b848392242305c43"
cache-control: max-age=0, private, must-revalidate
x-request-id: b60511c9-a71f-467e-bae0-7cf202bc758d
x-runtime: 0.026927
content-length: 1053

Body

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

    ],
    "bio": null,
    "birth_date": "2000-07-23",
    "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": "07941 392334",
    "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": "Nickolas",
    "interviews": [

    ],
    "last_name": "Yundt",
    "licenses": [

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

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