User Updates API

ENDPOINT: POST /v1/patients/{patientId}/update_details

Our partners use the User Updates API calls to update an existing patient’s personal details or preferences.

Calling this endpoint will update the patient’s status in our database.

These action events can be used for different types of consent, such as SMS.

The additionalData array details whether the user opted in, opted out, or revoked past consent.

Below is an example of how to opt-out a patient:

				
					{
  "action": {
    "name": "consent",
    "value": "sms",
    "additionalData": [
      {
        "key": "opt-in",
        "value": "false"
      }
    ]
  },
  "phoneNumber": "{{test-user-phone-number}}",
  "externalId": "{{test-user-external-user-id}}",
  "supportProgramId": "{{partners-support-program-id}}"
}
				
			

Standard HTTP Response Codes

StatusCodeMessageDescription
200N/ASuccessfulUser opted out
208N/AUser already opted outUser already opted out
400N/AProgram ID {{partners-support-program-id}} not foundPlease check the support program ID and resubmit
422N/APatient Not FoundPatient cannot be found in the RxWare system.
User Updates API
Skip to content