UpdateEndpointBody

Request body for updating an Endpoint.

Definition

TypeScript
interface UpdateEndpointBody {
  method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
  path?: string | undefined;
  handlerType?: "function" | "workflow" | "agent" | "swarm" | undefined;
  handlerId?: string | undefined;
  auth?:
    | { kind: "public"; rateLimitPerMinute?: number | undefined }
    | { kind: "workspace_api_key" }
    | { kind: "oauth"; scope: string }
    | { kind: "event_signature"; secretSource: "secret_ref"; secretId: string }
    | null
    | undefined;
  cors?:
    | { allowOrigins: Array<string>; allowCredentials?: boolean | undefined }
    | null
    | undefined;
  timeoutSeconds?: number | undefined;
  enabled?: boolean | undefined;
}

Fields

FieldTypeNotes
method"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefinedoptional — New HTTP method.
pathstring | undefinedoptional — New path within the API.
handlerType"function" | "workflow" | "agent" | "swarm" | undefinedoptional — New handler type — must be paired with a compatible handlerId.
handlerIdstring | undefinedoptional — New handler ID (agent / function / workflow).
auth{ kind: "public"; rateLimitPerMinute?: number | undefined; } | { kind: "workspace_api_key"; } | { kind: "oauth"; scope: string; } | { kind: "event_signature"; secretSource: "secret_ref"; secretId: string; } | null | undefinedoptional — Replace the auth override; null to fall back to the API default.
cors{ allowOrigins: Array<string>; allowCredentials?: boolean | undefined; } | null | undefinedoptional — Replace the CORS override; null to fall back to the API default.
timeoutSecondsnumber | undefinedoptional — New timeout in seconds (max 300).
enabledboolean | undefinedoptional — Toggle whether the route accepts traffic.