v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Org Authorized Clients

Update an org authorized client

Enable or disable an OAuth2 client authorization for the current organization.

patch/api/v2/org_authorized_clients/{org_authorized_client_id}

Path parameters

org_authorized_client_idstring required
Example:00000000-0000-0000-0000-000000000001

The ID of the org authorized client.

Request body

Example request

{
  "data": {
    "attributes": {
      "disabled": true
    },
    "id": "00000000-0000-0000-0000-000000000001",
    "type": "org_authorized_clients"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "last_exercised": "2024-01-15T10:30:00+00:00",
      "user_count": 2
    },
    "id": "00000000-0000-0000-0000-000000000001",
    "relationships": {
      "oauth2_client": {
        "data": {
          "id": "00000000-0000-0000-0000-000000000010",
          "type": "oauth2_clients"
        }
      },
      "user_authorized_clients": {
        "data": [
          {
            "id": "00000000-0000-0000-0000-000000000020",
            "type": "user_authorized_clients"
          }
        ],
        "links": {
          "related": "/api/v2/org_authorized_clients/00000000-0000-0000-0000-000000000001/user_authorized_clients"
        }
      }
    },
    "type": "org_authorized_clients"
  }
}