# sendCustomEvent

Audience: Developer

**Served by:** [management](https://docs.pyck.cloud/dev/api/services/management.md)

## Arguments

| Name | Type |
| --- | --- |
| `input` | [SendCustomEventInput](https://docs.pyck.cloud/dev/api/inputs/sendcustomeventinput.md)! |

## Returns

[SendCustomEventResponse](https://docs.pyck.cloud/dev/api/types/sendcustomeventresponse.md)

## Example

Publishes a custom event for an entity id in the mutation's tenant. The workflow signal router starts or signals every workflow registered for the event's type and operation. Requires the WRITER role on the tenant.

```graphql
mutation SendCustomEvent($input: SendCustomEventInput!) {
  sendCustomEvent(input: $input) {
    eventCount
    success
    transactionID
  }
}
```

**Variables**

```json
{
  "input": {
    "operation": "create",
    "payload": {
      "data": {
        "key": "value"
      },
      "id": "<random UUID>"
    },
    "type": "brunoExample"
  }
}
```
