Assign the logged in patient to a device with a registration code

Assign the logged in patient to a device with a registration code

This API can only be called by patients.
This API will set the patient from the token as the patient of the device that is linked to the registration code in the request and transfer the device to that patient's organization.
The registration code must link to a device.
The device should either be in the manufacturer organization or in the patient's organization.
The device should already be assigned to this patient or not assigned to any patient.
If any of these fail a 403 ACCESS_DENIED error will return.

(*)This parameter is mandatory only if its optional parent attribute is defined. Click here for more information.

Request Body Parameters:

ParameterTypeMandatoryDescriptionExample
<customAttribute1><customAttribute1Type>falseRegular custom attribute 1 value
<customAttributeN><customAttributeNType>falseRegular custom attribute N value
_configuration.<customAttribute1><customAttribute1Type>falseConfiguration custom attribute 1 value
_configuration.<customAttributeN><customAttributeNType>falseConfiguration custom attribute N value
_registrationCodeobjecttrue
_registrationCode.idstringtrue(*)

This API requires PROTECTED_API permission(s).

Body Params
_registrationCode
object
required

Registration Code ID.

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json