PATCH
/
v1
/
options_group
/
{id}
curl --request PATCH \
  --url https://api.sandbox.usenash.com/v1/options_group/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "label": "<string>",
  "allowedProviders": [
    "<string>"
  ],
  "enableAutoDispatch": true,
  "providerSelectionStrategy": "<string>",
  "reassignOnFailure": true,
  "enableMaxDeliveryFee": true,
  "maxDeliveryFeeCents": 123,
  "costSplitStrategy": "<string>",
  "costSplitMaxPercentage": 123,
  "costSplitMaxFixedPriceCents": 123
}'
{
  "id": "<string>",
  "label": "<string>",
  "allowedProviders": [
    "<string>"
  ],
  "enableAutoDispatch": true,
  "providerSelectionStrategy": "<string>",
  "reassignOnFailure": true,
  "enableMaxDeliveryFee": true,
  "maxDeliveryFeeCents": 123,
  "costSplitStrategy": "<string>",
  "costSplitMaxPercentage": 123,
  "costSplitMaxFixedPriceCents": 123
}

Path Parameters

id
string
required

Body

application/json

Common schema for inputting a dispatch strategy.

label
string
required
Maximum length: 80
id
string | null
allowedProviders
string[] | null
enableAutoDispatch
boolean | null
providerSelectionStrategy
string | null
reassignOnFailure
boolean | null
enableMaxDeliveryFee
boolean | null
maxDeliveryFeeCents
integer | null
costSplitStrategy
string | null
costSplitMaxPercentage
integer | null
costSplitMaxFixedPriceCents
integer | null

Response

200
application/json
OK

Common schema for inputting a dispatch strategy.

label
string
required
Maximum length: 80
id
string | null
allowedProviders
string[] | null
enableAutoDispatch
boolean | null
providerSelectionStrategy
string | null
reassignOnFailure
boolean | null
enableMaxDeliveryFee
boolean | null
maxDeliveryFeeCents
integer | null
costSplitStrategy
string | null
costSplitMaxPercentage
integer | null
costSplitMaxFixedPriceCents
integer | null