patchRegistration method
Future<ClientResponse<RegistrationResponse, Errors> >
patchRegistration(
- String userId,
- RegistrationRequest request
Updates, via PATCH, the registration for the user with the given id and the application defined in the request.
@param {String} userId The Id of the user whose registration is going to be updated. @param {RegistrationRequest} request The request that contains just the new registration information. @returns {Promise<ClientResponse
Implementation
Future<ClientResponse<RegistrationResponse, Errors>> patchRegistration(
String userId, RegistrationRequest request) {
return _start<RegistrationResponse, Errors>()
.withUri('/api/user/registration')
.withUriSegment(userId)
.withJSONBody(request)
.withMethod('PATCH')
.withResponseHandler(defaultResponseHandlerBuilder(
(d) => RegistrationResponse.fromJson(d)))
.go();
}