API ReferenceWebforms
Path Parameters
webformId*string
Format
uuidrouterId*string
Format
uuidRequest Body
application/json
Update webform
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PUT "http://localhost:8000/api/routers/7253b007-c14b-496f-833b-9e1aa7f1a27d/webforms/7253b007-c14b-496f-833b-9e1aa7f1a27d" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "responsibleRoutingOperatorId": "419cb0ab-4c42-40a0-926a-97603a2ee6b4", "orderTemplateId": "5c71a80f-4fe5-4de3-b799-936b8cf62953", "workflowTemplateId": "53e62d87-459b-4f1f-ae45-ffe2549e140f", "inputs": [ { "question": { "type": "input", "title": "string", "alternatives": [ { "value": "string", "option": "string" } ] } } ] }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"sharedWithChildOrganizations": true,
"responsibleRoutingOperatorId": "419cb0ab-4c42-40a0-926a-97603a2ee6b4",
"publicToken": "string",
"publicSharable": true,
"includeOffering": true,
"requireOfferLines": true,
"description": "string",
"routerId": "c3d4372d-3cfa-4618-a60e-50a4c920823d",
"orderTemplateId": "5c71a80f-4fe5-4de3-b799-936b8cf62953",
"workflowTemplateId": "53e62d87-459b-4f1f-ae45-ffe2549e140f",
"publicRedirection": "NONE",
"portalNewTab": true,
"showLogo": true,
"eComProductGrid": true,
"updatedAt": "2019-08-24",
"createdAt": "2019-08-24",
"deletedAt": "2019-08-24",
"inputs": [
{
"webformId": "79199654-cec0-4f47-8ee2-a133644b14f5",
"questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
"position": -2147483648,
"question": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"type": "input",
"title": "string",
"description": "string",
"required": true,
"viewOnly": true,
"orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
"customFieldId": "8bf8672b-1aef-433e-b9d8-eed30a2bd543",
"dependsOnCustomFieldId": "ca3f190b-3e90-4426-9e05-f6846cef2d67",
"dependsOnOperator": "ANY_OF",
"dependsOnValues": [
"string"
],
"multiValue": true,
"alternatives": [],
"orderCustomField": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"customId": "string",
"name": "string",
"type": "TEXT",
"isSensitive": true,
"fileUrl": "string",
"regex": "string",
"validationMessage": "string",
"value": "string",
"values": [
{
"value": "string",
"fileUrl": "string",
"fileName": "string"
}
],
"orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5"
},
"orderTemplateCustomField": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"customId": "string",
"name": "string",
"type": "TEXT",
"isSensitive": true,
"fileUrl": "string",
"regex": "string",
"validationMessage": "string",
"value": "string",
"values": [
{
"value": "string",
"fileUrl": "string",
"fileName": "string"
}
],
"orderTemplateId": "5c71a80f-4fe5-4de3-b799-936b8cf62953",
"visibleInOrderCreation": true,
"usedCount": 0,
"questions": [
{
"type": "string",
"id": "string",
"title": "string",
"alternatives": [
null
]
}
]
},
"dependsOnCustomField": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"customId": "string",
"name": "string",
"type": "TEXT",
"isSensitive": true,
"fileUrl": "string",
"regex": "string",
"validationMessage": "string",
"value": "string",
"values": [
{
"value": "string",
"fileUrl": "string",
"fileName": "string"
}
],
"orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5"
},
"dependsOnCustomFieldTemplate": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"customId": "string",
"name": "string",
"type": "TEXT",
"isSensitive": true,
"fileUrl": "string",
"regex": "string",
"validationMessage": "string",
"value": "string",
"values": [
{
"value": "string",
"fileUrl": "string",
"fileName": "string"
}
],
"orderTemplateId": "5c71a80f-4fe5-4de3-b799-936b8cf62953",
"visibleInOrderCreation": true,
"usedCount": 0,
"questions": [
{
"type": "string",
"id": "string",
"title": "string",
"alternatives": [
null
]
}
]
},
"usedCount": 0
}
}
],
"router": {
"areaOfOperation": "string",
"logoUrl": "string"
},
"productTags": [],
"orderTags": []
}