deactivateUser method

Future<ClientResponse<void, Errors>> deactivateUser(
  1. String userId
)

Deactivates the user with the given Id.

@param {String} userId The Id of the user to deactivate. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<void, Errors>> deactivateUser(String userId) {
  return _start<void, Errors>()
      .withUri('/api/user')
      .withUriSegment(userId)
      .withMethod('DELETE')
      .go();
}