{
  "opencollection": "1.0.0",
  "info": {
    "name": "Infisical Admin Project Roles API",
    "version": "0.0.1"
  },
  "items": [
    {
      "info": {
        "name": "Project Roles",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "GET /api/v1/projects/{projectId}/roles",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://us.infisical.com/api/v1/projects/:projectId/roles",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "The ID of the project."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "List project role"
        },
        {
          "info": {
            "name": "POST /api/v1/projects/{projectId}/roles",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://us.infisical.com/api/v1/projects/:projectId/roles",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "Id of the project to create the role for."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a project role"
        },
        {
          "info": {
            "name": "PATCH /api/v1/projects/{projectId}/roles/{roleId}",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://us.infisical.com/api/v1/projects/:projectId/roles/:roleId",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "The ID of the project to update the role for."
              },
              {
                "name": "roleId",
                "value": "",
                "type": "path",
                "description": "The ID of the role to update"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update a project role"
        },
        {
          "info": {
            "name": "DELETE /api/v1/projects/{projectId}/roles/{roleId}",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://us.infisical.com/api/v1/projects/:projectId/roles/:roleId",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "The ID of the project to delete the role for."
              },
              {
                "name": "roleId",
                "value": "",
                "type": "path",
                "description": "The ID of the role to update"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete a project role"
        },
        {
          "info": {
            "name": "GET /api/v1/projects/{projectId}/roles/slug/{roleSlug}",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://us.infisical.com/api/v1/projects/:projectId/roles/slug/:roleSlug",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "The ID of the project."
              },
              {
                "name": "roleSlug",
                "value": "",
                "type": "path",
                "description": "The slug of the role to get details."
              }
            ]
          }
        },
        {
          "info": {
            "name": "listProjectRoles",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://us.infisical.com/api/v2/workspace/:projectId/roles",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "The ID of the project."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "List project role"
        },
        {
          "info": {
            "name": "createProjectRole",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://us.infisical.com/api/v2/workspace/:projectId/roles",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "Id of the project to create the role for."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a project role"
        },
        {
          "info": {
            "name": "updateProjectRole",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://us.infisical.com/api/v2/workspace/:projectId/roles/:roleId",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "The ID of the project to update the role for."
              },
              {
                "name": "roleId",
                "value": "",
                "type": "path",
                "description": "The ID of the role to update"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update a project role"
        },
        {
          "info": {
            "name": "deleteProjectRole",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://us.infisical.com/api/v2/workspace/:projectId/roles/:roleId",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "The ID of the project to delete the role for."
              },
              {
                "name": "roleId",
                "value": "",
                "type": "path",
                "description": "The ID of the role to update"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete a project role"
        },
        {
          "info": {
            "name": "getProjectRoleBySlug",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://us.infisical.com/api/v2/workspace/:projectId/roles/slug/:roleSlug",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path",
                "description": "The ID of the project."
              },
              {
                "name": "roleSlug",
                "value": "",
                "type": "path",
                "description": "The slug of the role to get details."
              }
            ]
          }
        }
      ]
    }
  ],
  "bundled": true
}