OAuth2 Client Public

Upsert an OAuth2 client scopes restriction

Create or update the scopes restriction configured for the OAuth2 client.

post/api/v2/oauth2/clients/{client_uuid}/scopes_restriction

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/oauth2/clients/{client_uuid}/scopes_restriction
  • Auth
    API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY

Path parameters

client_uuidstring uuid required
Example:fafa8e1c-36a5-11f0-a83d-da7ad0900001

UUID of the OAuth2 client.

Request body

Example request

{
  "data": {
    "attributes": {
      "oidc_scopes": [
        "openid",
        "email"
      ],
      "permission_scopes": [
        "dashboards_read",
        "metrics_read"
      ]
    },
    "type": "upsert_scopes_restriction"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "required_permission_scopes": [
        "mobile_app_access"
      ],
      "scopes_restriction": {
        "oidc_scopes": [
          "openid",
          "email"
        ],
        "permission_scopes": [
          "dashboards_read",
          "metrics_read"
        ]
      }
    },
    "id": "fafa8e1c-36a5-11f0-a83d-da7ad0900001",
    "type": "scopes_restriction"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.