Body

Body

Body

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