diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 7a9926c3d391..c0368d657db4 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -242886,6 +242886,12 @@ paths: get: description: |- Get the list of users assigned seats for a product code. + + This endpoint requires the `user_access_read` (User Access Read) permission + in addition to at least one of `billing_read`, `incident_read`, or `on_call_read`. + Scoped application keys, personal access tokens, and service access tokens + must include the `user_access_read` scope. Credentials without this scope + receive a `403 Forbidden` response. operationId: GetSeatsUsers parameters: - description: The product code for which to retrieve seat users. @@ -242926,6 +242932,8 @@ paths: description: OK "400": $ref: "#/components/responses/BadRequestResponse" + "403": + $ref: "#/components/responses/ForbiddenResponse" "422": content: application/json: @@ -242934,6 +242942,11 @@ paths: description: Unprocessable Entity "429": $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - user_access_read summary: Get users with seats tags: - Seats diff --git a/lib/datadog_api_client/v2/api/seats_api.rb b/lib/datadog_api_client/v2/api/seats_api.rb index 1c6970321cf7..4aae5891a2f9 100644 --- a/lib/datadog_api_client/v2/api/seats_api.rb +++ b/lib/datadog_api_client/v2/api/seats_api.rb @@ -102,6 +102,12 @@ def get_seats_users(product_code, opts = {}) # # Get the list of users assigned seats for a product code. # + # This endpoint requires the `user_access_read` (User Access Read) permission + # in addition to at least one of `billing_read`, `incident_read`, or `on_call_read`. + # Scoped application keys, personal access tokens, and service access tokens + # must include the `user_access_read` scope. Credentials without this scope + # receive a `403 Forbidden` response. + # # @param product_code [String] The product code for which to retrieve seat users. # @param opts [Hash] the optional parameters # @option opts [Integer] :page_limit Maximum number of results to return.