> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# attributionSettingsUpdate

> Change how this store attributes orders to its marketing messages, the same settings the Redo app's attribution page saves. Only the fields you pass change. Returns the settings after the change. BAD_USER_INPUT (400) for a null, a window of zero or past 30 days, a window on `CODE_REDEEMED` or `MEANINGFUL_CONVERSATION`, or a kind of evidence listed twice; nothing is saved then.

**Required scopes:** [`marketing_settings_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-marketing_settings_write)

**Store must have one of:** `EMAIL_SMS`

## Arguments

**input** `[AttributionSettingsUpdateInput!](/docs/api-reference/v3/reference/marketing/attribution-settings-update-input)` *required*

The settings to change.

**fields**

**defaultModel** `[AttributionModel](/docs/api-reference/v3/reference/marketing/attribution-model)`

The model reports load first. Leave it out to keep the stored value.

**evidence** `[\[AttributionEvidenceSettingInput!\]](/docs/api-reference/v3/reference/marketing/attribution-evidence-setting-input)`

The kinds of evidence to change. Each kind may appear once.

**fields**

**enabled** `Boolean`

Whether this kind of evidence is enough for a message to earn credit. Leave it out to keep the stored value. Not null.

**type** `[AttributionEvidenceType!](/docs/api-reference/v3/reference/marketing/attribution-evidence-type)` *required*

The kind of evidence to change.

**window** `[AttributionWindowInput](/docs/api-reference/v3/reference/marketing/attribution-window-input)`

How far back from an order this evidence counts. Leave it out to keep the stored value. Not null. Refused for `CODE_REDEEMED` and `MEANINGFUL_CONVERSATION`, whose windows are fixed.

## Returns

**attributionSettingsUpdate** `[AttributionSettings!](/docs/api-reference/v3/reference/marketing/attribution-settings)` *required*

How this store attributes orders to its marketing messages: the settings on the Redo app's attribution page. Campaign and automation analytics follow them.

**fields**

**defaultModel** `[AttributionModel!](/docs/api-reference/v3/reference/marketing/attribution-model)` *required*

The model reports load first. Reports include every model either way.

**evidence** `[\[AttributionEvidenceSetting!\]!](/docs/api-reference/v3/reference/marketing/attribution-evidence-setting)` *required*

Every kind of evidence, switched on or off.

**fields**

**enabled** `Boolean!` *required*

Whether this kind of evidence is enough for a message to earn credit.

**type** `[AttributionEvidenceType!](/docs/api-reference/v3/reference/marketing/attribution-evidence-type)` *required*

The kind of evidence.

**window** `[AttributionWindow!](/docs/api-reference/v3/reference/marketing/attribution-window)` *required*

How far back from an order this evidence counts. Fixed for `CODE_REDEEMED` and `MEANINGFUL_CONVERSATION`.

**fields**

**unit** `[AttributionWindowUnit!](/docs/api-reference/v3/reference/marketing/attribution-window-unit)` *required*

The unit of `value`.

**value** `Int!` *required*

How many units, at least 1.

## Example

```graphql theme={null}
mutation {
  attributionSettingsUpdate(input: { ... }) {
    defaultModel
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.