# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand. overlay: 1.0.0 info: title: API Evangelist conversational phrasing for Datadog Grants API version: 1.0.0 extends: openapi/datadog-grants-api-openapi.yml actions: - target: $.info update: x-apievangelist-phrasing: method: generated generated: '2026-10-01' generator: build-phrasing.py label: Generated by API Evangelist operations: 2 - target: $.paths['/api/v2/logs/config/restriction_queries/{restriction_query_id}/roles'].post update: x-apievangelist-phrasing: intent: Grant a role to a logs restriction query effect: write questions: - How do I apply a logs restriction query to a role? - Can I limit which logs a role sees by attaching a restriction query? instructions: - text: Grant role {data} to restriction query {restriction_query_id}. slots: restriction_query_id: path.restriction_query_id data: requestBody.data - text: Attach a role to logs restriction query {restriction_query_id}. slots: restriction_query_id: path.restriction_query_id method: generated generated: '2026-10-01' - target: $.paths['/api/v2/roles/{role_id}/permissions'].post update: x-apievangelist-phrasing: intent: Grant a permission to a role effect: write questions: - How do I give a role an extra permission? - Can I add a single permission to a custom role? instructions: - text: Grant permission {data} to role {role_id}. slots: role_id: path.role_id data: requestBody.data - text: Add a permission to role {role_id}. slots: role_id: path.role_id method: generated generated: '2026-10-01'