{
  "opencollection": "1.0.0",
  "info": {
    "name": "Permit.io Access Requests (EAP) Access Requests (EAP) Relationship tuples API",
    "version": "2.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Relationship tuples",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Relationship Tuples Detailed",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v2/facts/:proj_id/:env_id/relationship_tuples/detailed",
            "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": "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)."
              },
              {
                "name": "tenant",
                "value": "",
                "type": "query",
                "description": "The tenant key or id to filter by"
              },
              {
                "name": "subject",
                "value": "",
                "type": "query",
                "description": "The subject to filter by, accepts either the resource instance id or resource_type:resource_instance"
              },
              {
                "name": "relation",
                "value": "",
                "type": "query",
                "description": "The relation id or key to filter by"
              },
              {
                "name": "object",
                "value": "",
                "type": "query",
                "description": "The object to filter by, accepts either the resource instance id or resource_type:resource_instance"
              },
              {
                "name": "object_type",
                "value": "",
                "type": "query",
                "description": "The object type to filter by, accepts resource type id or key"
              },
              {
                "name": "subject_type",
                "value": "",
                "type": "query",
                "description": "The subject type to filter by, accepts resource type id or key"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Lists the relationship tuples defined within an environment."
        },
        {
          "info": {
            "name": "List Relationship Tuples",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v2/facts/:proj_id/:env_id/relationship_tuples",
            "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": "detailed",
                "value": "",
                "type": "query",
                "description": "If true, will return the full subject and object resource instances."
              },
              {
                "name": "include_total_count",
                "value": "",
                "type": "query",
                "description": "If true, returns the list of resource instances and the total count."
              },
              {
                "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)."
              },
              {
                "name": "tenant",
                "value": "",
                "type": "query",
                "description": "The tenant key or id to filter by"
              },
              {
                "name": "subject",
                "value": "",
                "type": "query",
                "description": "The subject to filter by, accepts either the resource instance id or resource_type:resource_instance"
              },
              {
                "name": "relation",
                "value": "",
                "type": "query",
                "description": "The relation id or key to filter by"
              },
              {
                "name": "object",
                "value": "",
                "type": "query",
                "description": "The object to filter by, accepts either the resource instance id or resource_type:resource_instance"
              },
              {
                "name": "object_type",
                "value": "",
                "type": "query",
                "description": "The object type to filter by, accepts resource type id or key"
              },
              {
                "name": "subject_type",
                "value": "",
                "type": "query",
                "description": "The subject type to filter by, accepts resource type id or key"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Lists the relationship tuples defined within an environment."
        },
        {
          "info": {
            "name": "Create Relationship Tuple",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v2/facts/:proj_id/:env_id/relationship_tuples",
            "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 a relationship between two resource instances using a relation."
        },
        {
          "info": {
            "name": "Delete Relationship Tuple",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/v2/facts/:proj_id/:env_id/relationship_tuples",
            "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": "Delete a relationship between two resource instances."
        },
        {
          "info": {
            "name": "Bulk create relationship tuples",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v2/facts/:proj_id/:env_id/relationship_tuples/bulk",
            "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": "Bulk create relationship tuples"
        },
        {
          "info": {
            "name": "Bulk Delete Relationship Tuples",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/v2/facts/:proj_id/:env_id/relationship_tuples/bulk",
            "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": "Bulk Delete Relationship Tuples"
        }
      ]
    }
  ],
  "bundled": true
}