updateUserAction method

Future<ClientResponse<UserActionResponse, Errors>> updateUserAction(
  1. String userActionId,
  2. UserActionRequest request
)

Updates the user action with the given Id.

@param {String} userActionId The Id of the user action to update. @param {UserActionRequest} request The request that contains all the new user action information. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<UserActionResponse, Errors>> updateUserAction(
    String userActionId, UserActionRequest request) {
  return _start<UserActionResponse, Errors>()
      .withUri('/api/user-action')
      .withUriSegment(userActionId)
      .withJSONBody(request)
      .withMethod('PUT')
      .withResponseHandler(defaultResponseHandlerBuilder(
          (d) => UserActionResponse.fromJson(d)))
      .go();
}