Interface Permissions

All Known Implementing Classes:
PermissionsImpl

public interface Permissions
Interface representing the Mailtrap Testing API for interaction with permissions
  • Method Details

    • managePermissions

      ManagePermissionsResponse managePermissions(long accountAccessId, long accountId, ManagePermissionsRequest request)
      Manage user or token permissions. If provided combination of resource_type and resource_id that already exists, the permission is updated. If the combination doesn't exist, the permission is created.
      Parameters:
      accountAccessId - unique account access ID
      accountId - unique account ID
      request - request body
      Returns:
      message about successful update of permissions
    • getResources

      List<Resource> getResources(long accountId)
      Get all resources in account (Inboxes, Projects, Domains, Billing and Account itself) to which the token has admin access
      Parameters:
      accountId - unique account ID
      Returns:
      the resources nested according to their hierarchy.