Skip to content

Update user

Request

Security
bearer
Path
idstringrequired

Unique identifier of the user

Example:64f8a1b23d4e5f6a7b8c9d0e
Bodyapplication/jsonrequired
nameobject(UserNameDto)
emailstring
Example:"jane.smith@sunrisecare.co.uk"
rolestring
Enum:"carer""senior-carer""carehome-admin""management"
activeboolean
Example:true
externalSourceobject(ExternalSourceDto)
PUT
/api/users/{id}
curl -i -X PUT \
  https://data.logmycare.co.uk/openapi/api/users/64f8a1b23d4e5f6a7b8c9d0e \
  -H 'Content-Type: application/json' \
  -d '{
    "name": {
      "first": "Jane",
      "last": "Smith"
    },
    "email": "jane.smith@sunrisecare.co.uk",
    "role": "carer",
    "active": true,
    "externalSource": {
      "sourceName": "my-integration",
      "sourceId": "ext-12345",
      "sourceType": "api",
      "externalCreatedAt": "2024-01-15T09:30:00.000Z",
      "sourceRecordUrl": "https://app.example.com/residents/ext-12345",
      "metadata": {
        "region": "north",
        "ward": "A"
      }
    }
  }'

Responses

Invalid query parameters

Bodyapplication/json
errorobject(ErrorDto)required

Error information

Response
{ "error": { "code": "VALIDATION_ERROR", "message": "Invalid date format", "details": {}, "timestamp": "2025-09-10T10:30:00Z", "correlationId": "req_12345" } }