Skip to main content
PUT
Python (SDK)

Authorizations

Authorization
string
header
required

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

Headers

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Body

application/json
guardrails
object[]
required

List of guardrails to configure

Banned words guardrail

team_id
string | null

Target team for this policy. Omit or pass null to set the org-wide policy that applies to every team (org admin only). Non-admin callers may only target their own team.

Minimum string length: 1

Response

200 - application/json

OK

object
any
required
guardrails
object[]
required

Banned words guardrail

team_id
string | null
required

Team this policy targets; null for the org-wide policy

updated_at
number
required

Unix timestamp of when the policy was updated