AI Gateway
Replace AI Gateway governance controls
Replace the organization-wide AI Gateway governance settings, which are the default data capture mode and whether requests must reach providers covered by a zero data retention agreement.
put/api/v2/governance
Request
- Base URLhttps://api.datadoghq.com
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code/oauth2/v1/authorizeToken URL/oauth2/v1/tokenScopesai_gateway_config_write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"data": {
"attributes": {
"data_capture_mode": "metadata_only",
"metadata_capture": [
"tool_usage",
"tool_output_size",
"tool_names"
],
"zdr_mode": "off"
},
"id": "organization",
"type": "governance"
}
}Response
OK
Example response
{
"data": {
"attributes": {
"data_capture_mode": "metadata_only",
"metadata_capture": [
"tool_usage",
"tool_output_size",
"tool_names"
],
"zdr_mode": "off"
},
"id": "organization",
"type": "governance"
}
}Changes
Changes to this operation have not been checked yet.