{
  "opencollection": "1.0.0",
  "info": {
    "name": "Permit.io Access Requests (EAP) Access Requests (EAP) User Invites API",
    "version": "2.0.0"
  },
  "items": [
    {
      "info": {
        "name": "User Invites",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List User Invites",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v2/facts/:proj_id/:env_id/user_invites",
            "params": [
              {
                "name": "proj_id",
                "value": "my_project",
                "type": "path",
                "description": "Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\")."
              },
              {
                "name": "env_id",
                "value": "my_environment",
                "type": "path",
                "description": "Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\")."
              },
              {
                "name": "role",
                "value": "",
                "type": "query",
                "description": "optional role filter, will only return invited users with this role."
              },
              {
                "name": "tenant",
                "value": "",
                "type": "query",
                "description": "optional tenant filter, will only return invited users in that tenant."
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "optional search, will only return invited users to that email, key or name."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number of the results to fetch, starting at 1."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "The number of results per page (max 100)."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "List User Invites"
        },
        {
          "info": {
            "name": "Create User Invite",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v2/facts/:proj_id/:env_id/user_invites",
            "params": [
              {
                "name": "proj_id",
                "value": "my_project",
                "type": "path",
                "description": "Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\")."
              },
              {
                "name": "env_id",
                "value": "my_environment",
                "type": "path",
                "description": "Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\")."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create User Invite"
        },
        {
          "info": {
            "name": "Get User Invite",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v2/facts/:proj_id/:env_id/user_invites/:user_invite_id",
            "params": [
              {
                "name": "user_invite_id",
                "value": "",
                "type": "path",
                "description": "Either the unique id of the user_invite, or the URL-friendly key of the user_invite (i.e: the \"slug\")."
              },
              {
                "name": "proj_id",
                "value": "my_project",
                "type": "path",
                "description": "Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\")."
              },
              {
                "name": "env_id",
                "value": "my_environment",
                "type": "path",
                "description": "Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\")."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get User Invite"
        },
        {
          "info": {
            "name": "Update User Invite",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/v2/facts/:proj_id/:env_id/user_invites/:user_invite_id",
            "params": [
              {
                "name": "user_invite_id",
                "value": "",
                "type": "path",
                "description": "Either the unique id of the user_invite, or the URL-friendly key of the user_invite (i.e: the \"slug\")."
              },
              {
                "name": "proj_id",
                "value": "my_project",
                "type": "path",
                "description": "Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\")."
              },
              {
                "name": "env_id",
                "value": "my_environment",
                "type": "path",
                "description": "Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\")."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update User Invite"
        },
        {
          "info": {
            "name": "Delete User Invite",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/v2/facts/:proj_id/:env_id/user_invites/:user_invite_id",
            "params": [
              {
                "name": "user_invite_id",
                "value": "",
                "type": "path",
                "description": "Either the unique id of the user_invite, or the URL-friendly key of the user_invite (i.e: the \"slug\")."
              },
              {
                "name": "proj_id",
                "value": "my_project",
                "type": "path",
                "description": "Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\")."
              },
              {
                "name": "env_id",
                "value": "my_environment",
                "type": "path",
                "description": "Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\")."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete User Invite"
        },
        {
          "info": {
            "name": "Approve User Invite",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v2/facts/:proj_id/:env_id/user_invites/:user_invite_id/approve",
            "params": [
              {
                "name": "user_invite_id",
                "value": "",
                "type": "path",
                "description": "Either the unique id of the user_invite, or the URL-friendly key of the user_invite (i.e: the \"slug\")."
              },
              {
                "name": "proj_id",
                "value": "my_project",
                "type": "path",
                "description": "Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\")."
              },
              {
                "name": "env_id",
                "value": "my_environment",
                "type": "path",
                "description": "Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\")."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Approve User Invite"
        }
      ]
    }
  ],
  "bundled": true
}