Interface AccountAccesses

All Known Implementing Classes:
AccountAccessesImpl

public interface AccountAccesses
Interface representing the Mailtrap Testing API for interaction with account accesses
  • Method Details

    • listUserAndInviteAccountAccesses

      List<AccountAccessResponse> listUserAndInviteAccountAccesses(long accountId, ListAccountAccessQueryParams params)
      Get list of account accesses for which specifier_type is User or Invite. Account admin/owner permissions for this endpoint to work.
      Parameters:
      accountId - unique account ID
      params - additional query params. If specified - the endpoint will return account accesses for these resources
      Returns:
      account access details
    • removeAccountAccess

      RemoveAccountAccessResponse removeAccountAccess(long accountAccessId, long accountId)
      If specifier type is User, it removes user permissions. If specifier type is Invite or ApiToken, it removes specifier along with permissions.

      Account admin/owner permissions for this endpoint to work

      Parameters:
      accountAccessId - unique account access ID
      accountId - unique account ID
      Returns:
      confirmation of successful deletion and id of the deleted access