/APIs & SDKs/Authentication/Update OptiTech Auth webhook configuration
PUT/programs/{program_id}/frameworks/{framework_id}/auth/webhooks

Update OptiTech Auth webhook configuration

Updates the webhook configuration for the specified framework's OptiTech Auth integration. Webhooks notify an external endpoint when auth events occur, such as user creation or sign-in.

Markdown for AI context

Quick start

REST API - curl
curl "https://api.optitech.com/v1/programs/$PROGRAM_ID/frameworks/$FRAMEWORK_ID/auth/webhooks" \
  -X PUT \
  -H "Authorization: Bearer $OPTITECH_API_KEY"
Also available in
optitech optitech-auth config webhook update --enabled

Parameters

Program ID
program_id
string

The OptiTech program ID

Framework ID
framework_id
string

The OptiTech framework ID

Request body

1 required Required: enabled.

Enabled
enabled
boolean

Webhook url
webhook_url
string

Enabled events
enabled_events
array

Timeout seconds
timeout_seconds
integerdefault: 5

12345678910

min: 1, max: 10

Response

200

Returns the updated webhook configuration

Depth
"enabled": (boolean),req
"webhook_url": (string),
"enabled_events": (array),
"timeout_seconds": 5,1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10min: 1, max: 10

Errors

default

General error

This endpoint can return the standard OptiTech API error response.

Response fields

  • message Required. Human-readable error message.
  • code Required. Machine-readable error code.
  • request_id Optional. Request identifier for debugging. You can provide one with the X-Request-ID header.

Retry guidance

If no response is returned, the request may still have reached the server. This is why retry safety depends on the method and status code.

Idempotent methods (GET, HEAD, OPTIONS) are generally safe to retry after a network error or timeout. Non-idempotent methods (POST, PATCH, DELETE, PUT) can change state, so avoid automatic retries unless your workflow can tolerate duplicate effects.

Responses with 423 Locked or 503 Service Unavailable are safe to retry. 423 Locked means the resource is temporarily locked, usually because another operation is in progress.

Was this page helpful?

On this page

Copy neon init command