# failPrinterJob

> Indicate that you failed your current attempt at printing the indicated job. Call this mutation after you have claimed a job (using the "claimPrinterJobs") and failed to print it.

Required permission: RestaurantWrite

Source: https://docs.gastrogate.io/docs/api/mutations/failPrinterJob

```graphql
failPrinterJob(
  restaurantId: ID!
  printerJobId: ID!
): Void
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `restaurantId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `printerJobId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |

## Returns

[`Void`](https://docs.gastrogate.io/docs/api/types/Void.md)

## Example

```graphql
mutation FailPrinterJob($restaurantId: ID!, $printerJobId: ID!) {
  failPrinterJob(restaurantId: $restaurantId, printerJobId: $printerJobId)
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { failPrinterJob(...) { __typename } }"}'
```
