All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
create_organization_members | POST /v2/members | Invite new members (EAP) |
delete_organization_member | DELETE /v2/members/{member_id} | Remove member (EAP) |
delete_organization_permissions | DELETE /v2/members | Remove permission (EAP) |
get_authenticated_member | GET /v2/members/me | Get the authenticated account member |
get_organization_member | GET /v2/members/{member_id} | Get Organization Member |
list_organization_members | GET /v2/members | List Organization Members |
update_organization_member | PATCH /v2/members/{member_id} | Edit members (EAP) |
models::OrgMemberReadWithGrants create_organization_members(org_member_create, inviter_name, inviter_email) Invite new members (EAP)
Create an organization member if needed, and grant it permissions. The member can be specified either by ID (for an existing member), or by email (for either an existing member or a new one). For a new member, an invite will be sent.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
org_member_create | OrgMemberCreate | [required] | ||
inviter_name | Option<String> | |||
inviter_email | Option<String> |
models::OrgMemberReadWithGrants
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_organization_member(member_id) Remove member (EAP)
Deletes an account member matching the given id or email address. The member will be removed from the active account in permit.io. If the member is the only member in its account (organization), returns 400 (bad request), due to nobody remains with access to the account, meaning deletion of the entire account (org). To completely remove an account, call DELETE /orgs/{org}
.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
member_id | String | Either the unique id (UUID) of the account member, or the email address of the account member. | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_organization_permissions(org_member_remove_permissions) Remove permission (EAP)
Remove permissions from a member. If the last permissions a member has are removed, the member is also deleted.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
org_member_remove_permissions | OrgMemberRemovePermissions | [required] |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::OrgMemberReadWithGrants get_authenticated_member() Get the authenticated account member
Gets the authenticated account member's details.
This endpoint does not need any parameter.
models::OrgMemberReadWithGrants
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::OrgMemberReadWithGrants get_organization_member(member_id) Get Organization Member
Gets a single account member by its id or email address. matching the given member, if no such member exists under the current active account (organization), returns 404.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
member_id | String | Either the unique id (UUID) of the account member, or the email address of the account member. | [required] |
models::OrgMemberReadWithGrants
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Vecmodels::OrgMemberReadWithGrants list_organization_members(project_id, env_id, page, per_page) List Organization Members
Lists all the account members that current active account has access to, optionally filtering by project or environment. The active account/organization is determined by the API Key used or by the authenticated session id.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
project_id | Option<uuid::Uuid> | |||
env_id | Option<uuid::Uuid> | |||
page | Option<i32> | Page number of the results to fetch, starting at 1. | [default to 1] | |
per_page | Option<i32> | The number of results per page (max 100). | [default to 30] |
Vecmodels::OrgMemberReadWithGrants
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::OrgMemberReadWithGrants update_organization_member(member_id, org_member_update) Edit members (EAP)
Updates an account member's settings.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
member_id | String | Either the unique id (UUID) of the account member, or the email address of the account member. | [required] | |
org_member_update | OrgMemberUpdate | [required] |
models::OrgMemberReadWithGrants
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]