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.eyJzdWIiOiIxODYzIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTU0LCJleHAiOjE3NDUwNTY5NTQsImp0aSI6IjdhOTc5ZTZkLWVkMmUtNGYzYy05Njc5LTQ5NzU5ODNkZDAyNyJ9.WCbJPUQ_w0TSrlikjZwgZof0SFAyOSWQkdxUpCl0KMg
Host: example.org
Cookie: 

Body

{
  "profile": {
    "first_name": "Cordell",
    "last_name": "Larson",
    "postcode": "Z8P 3LA",
    "english_level": "proficient",
    "contact_phone_number": "07822 725963"
  }
}

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/"b1df5250f785653431afada579ad0a67"
cache-control: max-age=0, private, must-revalidate
x-request-id: 9c2e5f0b-0c7b-4e7c-8d0b-38fa7bdc3620
x-runtime: 0.019546
content-length: 1126

Body

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

    ],
    "bio": "Sint subito vado. Deludo thesis coerceo.",
    "birth_date": "1976-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": "07822 725963",
    "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": "tosha.schneider+driver@example.com",
    "enchanced_dbs": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "english_level": "proficient",
    "experiences": [

    ],
    "first_name": "Cordell",
    "interviews": [

    ],
    "last_name": "Larson",
    "licenses": [
      "b",
      "c1e"
    ],
    "medical_check": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "phone_number": null,
    "postcode": "Z8P 3LA",
    "reviews": [

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