Installer.com Docs
API ReferenceWorkflow templates
PUT
/api/routers/{routerId}/workflow-templates/{workflowTemplateId}/offer

Path Parameters

routerId*string
Formatuuid
workflowTemplateId*string
Formatuuid

Request Body

application/json

Update workflow template default offer payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "http://localhost:8000/api/routers/497f6eca-6276-4993-bfeb-53cbbbba6f08/workflow-templates/497f6eca-6276-4993-bfeb-53cbbbba6f08/offer" \  -H "Content-Type: application/json" \  -d '{    "workflowTemplateId": "53e62d87-459b-4f1f-ae45-ffe2549e140f",    "lines": [      {}    ]  }'
{
  "workflowTemplateId": "53e62d87-459b-4f1f-ae45-ffe2549e140f",
  "payer": "string",
  "name": "string",
  "lines": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",
      "quantity": 0,
      "bundleItemId": "fbc51b9a-04f4-467a-9421-a6e505f6324d",
      "groupKey": "string",
      "product": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "routerId": "c3d4372d-3cfa-4618-a60e-50a4c920823d",
        "productType": "product",
        "internalId": -2147483648,
        "externalId": "string",
        "name": "string",
        "description": "string",
        "sharedWithContractors": true,
        "isPublic": true,
        "isEditable": true,
        "unit": "string",
        "defaultNote": "string",
        "paymentSource": "PLATFORM",
        "currencyCode": "str",
        "isTaxInclusive": true,
        "vatRate": -2147483648,
        "payerUnitAmount": -2147483648,
        "payerUnitTotalAmount": -2147483648,
        "discountUnitAmount": -2147483648,
        "discountSourceType": "string",
        "installerPayoutSharePercentage": -2147483648,
        "installerPayoutUnitAmount": -2147483648,
        "internalPrice": -2147483648,
        "updatedAt": "2019-08-24",
        "createdAt": "2019-08-24",
        "deletedAt": "2019-08-24",
        "installerPayoutUnitAmountExcludingVat": 0,
        "images": [],
        "attachments": [],
        "tags": []
      },
      "bundleName": "string",
      "bundleId": "b7ec5420-07d5-4432-b1d4-988b3c8d3901"
    }
  ]
}