# updateWeeklyRefundReportConfiguration

> Required permission: OrganizationWrite

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

```graphql
updateWeeklyRefundReportConfiguration(
  organizationId: ID!
  input: WeeklyRefundReportConfigurationInput!
): Organization
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation UpdateWeeklyRefundReportConfiguration($organizationId: ID!, $input: WeeklyRefundReportConfigurationInput!) {
  updateWeeklyRefundReportConfiguration(organizationId: $organizationId, input: $input) {
    id
    fortnoxAccountingImportEnabled
    hasFortnoxAccountingImportAccess
    hasFortnoxAccountingImportCredentials
    accountantEmail
    createdAt
  }
}
```

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