Body

Body

Body

PUT /external/api/campaigns
curl \
 -X PUT https://api.fygi.store/external/api/campaigns \
 -H "authorization: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '[{"name":"string","internalName":"string","id":"string","storeId":"string","startDate":"2024-05-04T09:42:00+00:00","endDate":"2024-05-04T09:42:00+00:00","rule":{"type":"cashDiscount","requiresMembership":true,"scope":"product"},"products":[{"id":"string","sortIndex":42}]}]'
curl \
 -X PUT https://api.fygi.store/external/api/campaigns \
 -H "authorization: $API_KEY" \
 -H "Content-Type: text/json"
curl \
 -X PUT https://api.fygi.store/external/api/campaigns \
 -H "authorization: $API_KEY" \
 -H "Content-Type: application/*+json"
Request examples
[
  {
    "name": "string",
    "internalName": "string",
    "id": "string",
    "storeId": "string",
    "startDate": "2024-05-04T09:42:00+00:00",
    "endDate": "2024-05-04T09:42:00+00:00",
    "rule": {
      "type": "cashDiscount",
      "requiresMembership": true,
      "scope": "product"
    },
    "products": [
      {
        "id": "string",
        "sortIndex": 42
      }
    ]
  }
]
Request examples
[
  {
    "name": "string",
    "internalName": "string",
    "id": "string",
    "storeId": "string",
    "startDate": "2024-05-04T09:42:00+00:00",
    "endDate": "2024-05-04T09:42:00+00:00",
    "rule": {
      "type": "cashDiscount",
      "requiresMembership": true,
      "scope": "product"
    },
    "products": [
      {
        "id": "string",
        "sortIndex": 42
      }
    ]
  }
]
Request examples
[
  {
    "name": "string",
    "internalName": "string",
    "id": "string",
    "storeId": "string",
    "startDate": "2024-05-04T09:42:00+00:00",
    "endDate": "2024-05-04T09:42:00+00:00",
    "rule": {
      "type": "cashDiscount",
      "requiresMembership": true,
      "scope": "product"
    },
    "products": [
      {
        "id": "string",
        "sortIndex": 42
      }
    ]
  }
]