PUT /accounts/{account_id}/ai-gateway/gateways/{id}

Updates an existing AI Gateway dataset.

Servers

Path parameters

Name Type Required Description
id String Yes
account_id String Yes

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
workers_ai_billing_mode String No

Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported.

Valid values:

  • "postpaid"

Default value: "postpaid"

cache_ttl Integer Yes
rate_limiting_limit Integer Yes
authentication Boolean No
rate_limiting_technique String No

Valid values:

  • "fixed"
  • "sliding"
cache_invalidate_on_update Boolean Yes
collect_logs Boolean Yes
logpush_public_key String No
guardrails Object No
guardrails.prompt Object Yes
guardrails.prompt.S10 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.prompt.S12 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.prompt.S11 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.prompt.S13 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.prompt.S1 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.prompt.S2 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.prompt.S3 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.prompt.P1 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.prompt.S4 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.prompt.S5 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.prompt.S6 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.prompt.S7 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.prompt.S8 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.prompt.S9 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.response Object Yes
guardrails.response.S10 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.response.S12 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.response.S11 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.response.S13 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.response.S1 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.response.S2 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.response.S3 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.response.P1 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.response.S4 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.response.S5 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.response.S6 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.response.S7 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.response.S8 String No

Valid values:

  • "BLOCK"
  • "FLAG"
guardrails.response.S9 String No

Valid values:

  • "BLOCK"
  • "FLAG"
otel[] Array No
otel[].content_type String No

Valid values:

  • "protobuf"
  • "json"

Default value: "json"

otel[].url String Yes
otel[].authorization String Yes
otel[].headers Object Yes
rate_limiting_interval Integer Yes
log_management_strategy String No

Valid values:

  • "STOP_INSERTING"
  • "DELETE_OLDEST"
store_id String No
stripe Object No
stripe.authorization String Yes
stripe.usage_events[] Array Yes
stripe.usage_events[].payload String Yes
logpush Boolean No
retry_delay Integer No

Delay between retry attempts in milliseconds (0-5000)

dlp No
log_management Integer No
retry_backoff String No

Backoff strategy for retry delays

Valid values:

  • "exponential"
  • "linear"
  • "constant"
zdr Boolean No
retry_max_attempts Integer No

Maximum number of retry attempts for failed requests (1-5)

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.