Storefront growth

Update a store automation

PUT
/v1/stores/{storeId}/growth/automations/{automationId}

Authorization

AuthorizationBearer <token>

API key from Settings → API keys

In: header

Path Parameters

storeId*string
automationId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/stores/string/growth/automations/string" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "enabled": true,    "trigger": "order_paid",    "conditions": {},    "actions": [      {        "kind": "tag_customer",        "tag": "string"      }    ],    "hourlyLimit": 1  }'
{  "name": "string",  "enabled": true,  "trigger": "order_paid",  "conditions": {    "minOrderMinor": -9007199254740991,    "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",    "ratingAtLeast": 1,    "stockAtMost": 0  },  "actions": [    {      "kind": "tag_customer",      "tag": "string"    }  ],  "hourlyLimit": 1,  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "createdAt": "string",  "updatedAt": "string"}