Profiles

Update user’s profile(admin)

PUT profile(admin)

Endpoint

PUT /api/v1/profiles/:id

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/profiles/611

Headers

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

Body

{
  "profile": {
    "licenses": [
      "c",
      "b",
      "adr",
      "hiab"
    ]
  }
}

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/"702f7961c0dca273b665ff4182cccfed"
cache-control: max-age=0, private, must-revalidate
x-request-id: 04d8ab8a-3614-4c2c-b256-56519fcd7292
x-runtime: 0.019422
content-length: 1158

Body

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

    ],
    "bio": "Conculco maxime clamo. Astrum pecunia validus.",
    "birth_date": "1985-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": "07515 470386",
    "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": "nicola.conn+driver@example.com",
    "enchanced_dbs": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "english_level": "beginner",
    "experiences": [

    ],
    "first_name": "Nicola",
    "interviews": [

    ],
    "last_name": "Conn",
    "last_sign_in_at": null,
    "licenses": [
      "c",
      "b",
      "adr",
      "hiab"
    ],
    "medical_check": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "phone_number": null,
    "postcode": "EC1A 1BB",
    "reviews": [

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