diff --git a/app/react/docker/containers/CreateView/useCreateMutation.tsx b/app/react/docker/containers/CreateView/useCreateMutation.tsx index bd37d5b5b..179daa3d7 100644 --- a/app/react/docker/containers/CreateView/useCreateMutation.tsx +++ b/app/react/docker/containers/CreateView/useCreateMutation.tsx @@ -313,10 +313,10 @@ async function createContainerWebhook( } await createWebhook({ - resourceId: containerId, - environmentId: environment.Id, - registryId, - webhookType: WebhookType.DockerContainer, + ResourceId: containerId, + EndpointID: environment.Id, + RegistryId: registryId, + WebhookType: WebhookType.DockerContainer, }); } diff --git a/app/react/portainer/webhooks/createWebhook.ts b/app/react/portainer/webhooks/createWebhook.ts index 431e26d45..bb60f1c07 100644 --- a/app/react/portainer/webhooks/createWebhook.ts +++ b/app/react/portainer/webhooks/createWebhook.ts @@ -7,10 +7,10 @@ import { buildUrl } from './build-url'; import { Webhook, WebhookType } from './types'; interface CreateWebhookPayload { - resourceId: string; - environmentId: EnvironmentId; - registryId?: RegistryId; - webhookType: WebhookType; + ResourceId: string; + EndpointID: EnvironmentId; + RegistryId?: RegistryId; + WebhookType: WebhookType; } export async function createWebhook(payload: CreateWebhookPayload) {