Users > Profile

Update current driver’s profile.

PUT update profile (main)

Endpoint

PUT /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[english_level] required Profile english level
profile[contact_phone_number] required Profile contact phone number
profile[birth_date] Profile birth date
profile[start_date] Profile start date

Request

Route

PUT /api/v1/users/profile

Headers

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

Body

{
  "profile": {
    "first_name": "Lashell",
    "last_name": "Farrell",
    "postcode": "Y6 5DN",
    "english_level": "advanced",
    "contact_phone_number": "07366 916627"
  }
}

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/"1746f9693bf6c4ecf1959c3c4a69d911"
cache-control: max-age=0, private, must-revalidate
x-request-id: 439d4c22-749a-44bd-ba21-d872c1a02875
x-runtime: 0.030021
content-length: 1126

Body

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

    ],
    "bio": "Cervus canto similique. Usitas subvenio sit.",
    "birth_date": "1983-08-08",
    "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": "07366 916627",
    "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": "aja.abernathy+driver@example.com",
    "enchanced_dbs": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "english_level": "advanced",
    "experiences": [

    ],
    "first_name": "Lashell",
    "interviews": [

    ],
    "last_name": "Farrell",
    "licenses": [
      "d1",
      "ce"
    ],
    "medical_check": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "phone_number": null,
    "postcode": "Y6 5DN",
    "reviews": [

    ],
    "start_date": "2021-09-15",
    "tacho": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    }
  }
}