Users

Update User Details for self

Update the profile details for the given user

Only Payee user types are supported

post/v2/users/self/userDetailsUpdate

Request body

primaryContactNumberstring nullable

The main contact number for the user

secondaryContactNumberstring nullable

The secondary contact number for the user

firstNamestring nullable
lastNamestring nullable
emailstring email nullable

the email address of the user

smsNumberstring nullable

The phone number of a device that the user can receive sms messages on

Example request

{
  "firstName": "John",
  "lastName": "Doe",
  "primaryContactNumber": "11235555555",
  "smsNumber": "11235555555",
  "secondaryContactNumber": "11235555550",
  "email": "foo@example.com"
}

Response

request completed okay

Changes

Changed in 4 of the 50 revisions of this API.5325

  • dd71433847a6424See the full diff
    • the errors/items/ response's property type/format changed from / to object/ for status 400

      response-property-type-changed

    • the errors/items/ response's property type/format changed from / to object/ for status 401

      response-property-type-changed

    • the errors/items/ response's property type/format changed from / to object/ for status 403

      response-property-type-changed

    • the errors/items/ response's property type/format changed from / to object/ for status 409

      response-property-type-changed

    • added the optional property errors/items/errorCode to the response with the 400 status

      response-optional-property-added

    • added the optional property errors/items/errorCode to the response with the 401 status

      response-optional-property-added

    • added the optional property errors/items/errorCode to the response with the 403 status

      response-optional-property-added

    • added the optional property errors/items/errorCode to the response with the 409 status

      response-optional-property-added

    • added the optional property errors/items/errorData to the response with the 400 status

      response-optional-property-added

    • added the optional property errors/items/errorData to the response with the 401 status

      response-optional-property-added

    • added the optional property errors/items/errorData to the response with the 403 status

      response-optional-property-added

    • added the optional property errors/items/errorData to the response with the 409 status

      response-optional-property-added

    • added the optional property errors/items/localisationDetails to the response with the 400 status

      response-optional-property-added

    • added the optional property errors/items/localisationDetails to the response with the 401 status

      response-optional-property-added

    • added the optional property errors/items/localisationDetails to the response with the 403 status

      response-optional-property-added

    • added the optional property errors/items/localisationDetails to the response with the 409 status

      response-optional-property-added

    • added the optional property httpStatusCode to the response with the 400 status

      response-optional-property-added

    • added the optional property httpStatusCode to the response with the 401 status

      response-optional-property-added

    • added the optional property httpStatusCode to the response with the 403 status

      response-optional-property-added

    • added the optional property httpStatusCode to the response with the 409 status

      response-optional-property-added

    • response property errors/items/locationType deprecated

      response-property-deprecated

    • response property errors/items/locationType deprecated

      response-property-deprecated

    • response property errors/items/locationType deprecated

      response-property-deprecated

    • response property errors/items/locationType deprecated

      response-property-deprecated

    • response property errors/items/reasonCode deprecated

      response-property-deprecated

    • response property errors/items/reasonCode deprecated

      response-property-deprecated

    • response property errors/items/reasonCode deprecated

      response-property-deprecated

    • response property errors/items/reasonCode deprecated

      response-property-deprecated

    This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • changed the pattern of the request property primaryContactNumber from ^\+?[1-9]\d{1,14}$ to ^\+[1-9]\d{1,14}$

      request-property-pattern-changed

    • changed the pattern of the request property secondaryContactNumber from ^\+?[1-9]\d{1,14}$ to ^\+[1-9]\d{1,14}$

      request-property-pattern-changed

    • changed the pattern of the request property smsNumber from ^\+?[1-9]\d{1,14}$ to ^\+[1-9]\d{1,14}$

      request-property-pattern-changed

    • endpoint added

      endpoint-added

    This revision also has 26 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 257 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog