Update Coupon Collection

Update a coupon collection by id

Options

Id
Id of the collection to update
Body
Values to update the coupon collection

Request body which must comply to the following JSON Schema:

{
  "type" : "object",
  "properties" : {
    "defaultCoupon" : {
      "type" : "string",
      "description" : "A default coupon to be used in case there are no coupons left",
      "example" : "10 OFF"
    },
    "expirationDate" : {
      "type" : "string",
      "description" : "Specify an expiration date for the coupon collection in RFC3339 format. Use null to remove the expiration date.",
      "format" : "date-time",
      "example" : "2024-01-01T00:00:00Z"
    },
    "remainingDaysAlert" : {
      "type" : "integer",
      "description" : "Send a notification alert (email) when the remaining days until the expiration date are equal or fall bellow this number. Use null to disable alerts.",
      "example" : 5
    },
    "remainingCouponsAlert" : {
      "type" : "integer",
      "description" : "Send a notification alert (email) when the remaining coupons count is equal or fall bellow this number. Use null to disable alerts.",
      "example" : 5
    }
  }
}
Result Format

Specify how the response should be mapped to the table output. The following formats are available:

Raw Response: Returns the raw response in a single row with the following columns:

  • body: Response body
  • status: HTTP status code

Input Ports

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.