{
  "opencollection": "1.0.0",
  "info": {
    "name": "Datadog Account Permissions API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "DD-API-KEY",
      "value": "{{DD-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Permissions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Datadog List Permissions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/permissions",
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Returns a list of all permissions, including name, description, and ID."
        },
        {
          "info": {
            "name": "Datadog List Permissions for a Role",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/roles/:role_id/permissions",
            "params": [
              {
                "name": "role_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the role."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Returns a list of all permissions for a single role."
        },
        {
          "info": {
            "name": "Datadog Grant Permission to a Role",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/roles/:role_id/permissions",
            "params": [
              {
                "name": "role_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the role."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Adds a permission to a role."
        },
        {
          "info": {
            "name": "Datadog Revoke Permission",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.{site}/api/v2/roles/:role_id/permissions",
            "params": [
              {
                "name": "role_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the role."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Removes a permission from a role."
        },
        {
          "info": {
            "name": "Datadog Get Permission Settings for a Team",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/team/:team_id/permission-settings",
            "params": [
              {
                "name": "team_id",
                "value": "abc-123-def",
                "type": "path",
                "description": "None"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Get all permission settings for a given team."
        },
        {
          "info": {
            "name": "Datadog Update Permission Setting for Team",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{subdomain}.{site}/api/v2/team/:team_id/permission-settings/:action",
            "params": [
              {
                "name": "team_id",
                "value": "abc-123-def",
                "type": "path",
                "description": "None"
              },
              {
                "name": "action",
                "value": "example_value",
                "type": "path",
                "description": "None"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Update a team permission setting for a given team."
        },
        {
          "info": {
            "name": "Datadog Get a User Permissions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/users/:user_id/permissions",
            "params": [
              {
                "name": "user_id",
                "value": "",
                "type": "path",
                "description": "The ID of the user."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Get a user permission set. Returns a list of the user’s permissions\ngranted by the associated user's roles."
        }
      ]
    }
  ],
  "bundled": true
}