# Webhook per API anlegen

**URL:** https://forum.shopware.com/t/webhook-per-api-anlegen/99327
**Category:** Shopware 6 (German)
**Created:** [14. April 2023 um 07:42 UTC](https://forum.shopware.com/t/webhook-per-api-anlegen/99327 "2023-04-14T07:42:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bastineu](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bastineu](https://forum.shopware.com/u/bastineu)
#### Post date: [14. April 2023 um 07:42 UTC](https://forum.shopware.com/t/webhook-per-api-anlegen/99327/1 "2023-04-14T07:42:56Z")

</div>

Ich versuche per Admin API einen Webhook hinzuzufügen, bekomme aber immer den Fehler:

```auto
{
			"code": "FRAMEWORK__WRITE_CONSTRAINT_VIOLATION",
			"status": "400",
			"detail": "This field is write-protected. (Got: \"crud\" scope and \"system\" is required)",
			"template": "This field is write-protected. (Got: \"%s\" scope and \"%s\" is required)",
			"meta": {
				"parameters": [
					"crud",
					"system"
				]
			},
			"source": {
				"pointer": "\/0\/errorCounterrorCount"
			}
		}

```

errorCount ist [required, aber gleichzeitig read-only](https://shopware.stoplight.io/docs/admin-api/e4577477e7578-webhook). Hat jemand eine Ahnung, wie ich am besten einen Webhook per API anlege?

Beste Grüße
