Skip to content

Update Webhook Config

WebhookConfigResponse webhookConfigs().update(WebhookConfigUpdateParamsparams = WebhookConfigUpdateParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
PUT/api/v1/beta/webhook-configs/{config_id}

Update a webhook configuration. Only fields present in the request change.

ParametersExpand Collapse
WebhookConfigUpdateParams params
Optional<String> configId
Optional<String> organizationId
Optional<String> projectId
Optional<List<WebhookEvent>> webhookEvents

Updated event subscriptions. Omit to leave unchanged; [] is rejected.

BATCH_CANCELLED("batch.cancelled")
BATCH_ERROR("batch.error")
BATCH_PENDING("batch.pending")
BATCH_RUNNING("batch.running")
BATCH_SUCCESS("batch.success")
CLASSIFY_CANCELLED("classify.cancelled")
CLASSIFY_ERROR("classify.error")
CLASSIFY_PARTIAL_SUCCESS("classify.partial_success")
CLASSIFY_PENDING("classify.pending")
CLASSIFY_RUNNING("classify.running")
CLASSIFY_SUCCESS("classify.success")
EXTRACT_CANCELLED("extract.cancelled")
EXTRACT_ERROR("extract.error")
EXTRACT_PARTIAL_SUCCESS("extract.partial_success")
EXTRACT_PENDING("extract.pending")
EXTRACT_SUCCESS("extract.success")
PARSE_CANCELLED("parse.cancelled")
PARSE_ERROR("parse.error")
PARSE_PARTIAL_SUCCESS("parse.partial_success")
PARSE_PENDING("parse.pending")
PARSE_RUNNING("parse.running")
PARSE_SUCCESS("parse.success")
SHEETS_CANCELLED("sheets.cancelled")
SHEETS_ERROR("sheets.error")
SHEETS_PARTIAL_SUCCESS("sheets.partial_success")
SHEETS_PENDING("sheets.pending")
SHEETS_SUCCESS("sheets.success")
SPLIT_CANCELLED("split.cancelled")
SPLIT_ERROR("split.error")
SPLIT_PENDING("split.pending")
SPLIT_PROCESSING("split.processing")
SPLIT_SUCCESS("split.success")
UNMAPPED_EVENT("unmapped_event")
Optional<WebhookHeaders> webhookHeaders

Updated headers.

Optional<WebhookOutputFormat> webhookOutputFormat

Updated output format.

JSON("json")
STRING("string")
Optional<String> webhookSigningSecret

Updated signing secret (write-only). Send to rotate the secret.

Optional<String> webhookUrl

Updated webhook URL.

ReturnsExpand Collapse
class WebhookConfigResponse:

A stored webhook configuration. The signing secret is never included.

String id

Unique identifier for the webhook configuration.

boolean hasSecret

Whether a signing secret is configured for this endpoint.

String tenantId

Owner tenant ID.

JsonValue; tenantType "project"constant"project"constant

Owner tenant type.

String webhookUrl

URL that receives webhook POST notifications.

Optional<LocalDateTime> createdAt

Creation datetime

formatdate-time
Optional<LocalDateTime> updatedAt

Update datetime

formatdate-time
Optional<List<WebhookEvent>> webhookEvents

Subscribed events (null = all events).

One of the following:
BATCH_CANCELLED("batch.cancelled")
BATCH_ERROR("batch.error")
BATCH_PENDING("batch.pending")
BATCH_RUNNING("batch.running")
BATCH_SUCCESS("batch.success")
CLASSIFY_CANCELLED("classify.cancelled")
CLASSIFY_ERROR("classify.error")
CLASSIFY_PARTIAL_SUCCESS("classify.partial_success")
CLASSIFY_PENDING("classify.pending")
CLASSIFY_RUNNING("classify.running")
CLASSIFY_SUCCESS("classify.success")
EXTRACT_CANCELLED("extract.cancelled")
EXTRACT_ERROR("extract.error")
EXTRACT_PARTIAL_SUCCESS("extract.partial_success")
EXTRACT_PENDING("extract.pending")
EXTRACT_SUCCESS("extract.success")
PARSE_CANCELLED("parse.cancelled")
PARSE_ERROR("parse.error")
PARSE_PARTIAL_SUCCESS("parse.partial_success")
PARSE_PENDING("parse.pending")
PARSE_RUNNING("parse.running")
PARSE_SUCCESS("parse.success")
SHEETS_CANCELLED("sheets.cancelled")
SHEETS_ERROR("sheets.error")
SHEETS_PARTIAL_SUCCESS("sheets.partial_success")
SHEETS_PENDING("sheets.pending")
SHEETS_SUCCESS("sheets.success")
SPLIT_CANCELLED("split.cancelled")
SPLIT_ERROR("split.error")
SPLIT_PENDING("split.pending")
SPLIT_PROCESSING("split.processing")
SPLIT_SUCCESS("split.success")
UNMAPPED_EVENT("unmapped_event")
Optional<WebhookHeaders> webhookHeaders

Custom HTTP headers sent with each request.

Optional<WebhookOutputFormat> webhookOutputFormat

Response format sent to the webhook.

One of the following:
JSON("json")
STRING("string")

Update Webhook Config

package ai.llamaindex.llamacloud.example;

import ai.llamaindex.llamacloud.client.LlamaCloudClient;
import ai.llamaindex.llamacloud.client.okhttp.LlamaCloudOkHttpClient;
import ai.llamaindex.llamacloud.models.webhookconfigs.WebhookConfigResponse;
import ai.llamaindex.llamacloud.models.webhookconfigs.WebhookConfigUpdateParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        LlamaCloudClient client = LlamaCloudOkHttpClient.fromEnv();

        WebhookConfigResponse webhookConfigResponse = client.webhookConfigs().update("config_id");
    }
}
{
  "id": "id",
  "has_secret": true,
  "tenant_id": "tenant_id",
  "tenant_type": "project",
  "webhook_url": "webhook_url",
  "created_at": "2019-12-27T18:11:19.117Z",
  "updated_at": "2019-12-27T18:11:19.117Z",
  "webhook_events": [
    "batch.cancelled"
  ],
  "webhook_headers": {
    "foo": "string"
  },
  "webhook_output_format": "json"
}
Returns Examples
{
  "id": "id",
  "has_secret": true,
  "tenant_id": "tenant_id",
  "tenant_type": "project",
  "webhook_url": "webhook_url",
  "created_at": "2019-12-27T18:11:19.117Z",
  "updated_at": "2019-12-27T18:11:19.117Z",
  "webhook_events": [
    "batch.cancelled"
  ],
  "webhook_headers": {
    "foo": "string"
  },
  "webhook_output_format": "json"
}
Note for AI agents: this documentation is built for programmatic access. - Overview of all docs: https://developers.llamaindex.ai/llms.txt - Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md - Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters. - A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/for-agents/mcp/ - Other LlamaIndex tooling for agents — the LlamaParse Platform MCP server, agent skills and plugins, and the n8n node — is mapped at https://developers.llamaindex.ai/for-agents/