Package io.mailtrap.api.permissions
Interface Permissions
- All Known Implementing Classes:
PermissionsImpl
public interface Permissions
Interface representing the Mailtrap Testing API for interaction with permissions
-
Method Summary
Modifier and TypeMethodDescriptiongetResources
(long accountId) Get all resources in account (Inboxes, Projects, Domains, Billing and Account itself) to which the token has admin accessmanagePermissions
(long accountAccessId, long accountId, ManagePermissionsRequest request) Manage user or token 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 IDaccountId
- unique account IDrequest
- request body- Returns:
- message about successful update of permissions
-
getResources
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.
-