PUT api/survey/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
Survey| Name | Description | Type | Additional information |
|---|---|---|---|
| G_UID |
Survey Identifier |
Collection of byte |
None. |
| Guid |
Survey GUID |
globally unique identifier |
None. |
| Name |
User-readable name of the survey |
string |
String length: inclusive between 0 and 60 |
| StoreID |
Store this survey will display in |
integer |
None. |
| ZoneID |
Zone this survey will display in; null = all zones |
integer |
None. |
| CheckoutFormG_UID |
Survey Identifier |
Collection of byte |
None. |
| CheckoutFormGuid |
Survey Form GUID |
globally unique identifier |
None. |
| DisplayToWho | SurveyAnswerer |
None. |
|
| DisplayWhen | DisplaySurveyWhen |
None. |
|
| Start | date |
None. |
|
| End | date |
None. |
|
| Deleted |
Soft deletion flag |
boolean |
None. |
| Updated | date |
None. |
|
| PossibleIntegerResponses |
List of possible integer/number answers that can be answered using this survey |
Collection of integer |
Relation. This field may not always be loaded or used for updates. |
| PossibleTextResponses |
List of possible text answers that can be answered using this survey |
Collection of string |
Relation. This field may not always be loaded or used for updates. |
| PossibleGuidResponses |
List of possible guid answers that can be answered using this survey |
Collection of globally unique identifier |
Relation. This field may not always be loaded or used for updates. |
| AllowsAllTextResponses |
true if this survey allows all text-based answers; PossibleTextResponses will still be populated with any pre-configured text responses This is true if the surveys checkoutform contains a InputDisplayPanel as this allows any text to be inputted |
boolean |
Relation. This field may not always be loaded or used for updates. |
| SurveyForm | CheckoutForm |
Relation. This field may not always be loaded or used for updates. |
Request Formats
application/json, text/json
{
"g_UID": "vZMSwASvuUK+lCxKJOk8pQ==",
"guid": "c01293bd-af04-42b9-be94-2c4a24e93ca5",
"name": "sample string 1",
"storeID": 2,
"zoneID": 1,
"checkoutFormG_UID": "tecAPMfbkU6dwoAg2Ho/5Q==",
"checkoutFormGuid": "3c00e7b5-dbc7-4e91-9dc2-8020d87a3fe5",
"displayToWho": 3,
"displayWhen": 4,
"start": "2026-06-03T05:16:28.1840499",
"end": "2026-06-03T05:16:28.1840499",
"deleted": true,
"updated": "2026-06-03T05:16:28.1840499",
"possibleIntegerResponses": [
1,
2
],
"possibleTextResponses": [
"sample string 1",
"sample string 2"
],
"possibleGuidResponses": [
"5d3bb26a-8311-4f1d-9f10-6e9068e2d10b",
"f2513fd6-d5dd-4086-8c65-915d6d198e76"
],
"allowsAllTextResponses": true,
"surveyForm": {
"$id": "2",
"id": 1,
"g_UID": "iD3muryK8EaPAKk5YADjdg==",
"guid": "bae63d88-8abc-46f0-8f00-a9396000e376",
"zoneID": 3,
"storeID": 4,
"name": "sample string 5",
"formType": "sample string 6",
"locationX": 1,
"locationY": 1,
"width": 1,
"height": 1,
"maximised": true,
"resizable": true,
"backgroundImage": "sample string 7",
"backgroundColour": "sample string 8",
"backgroundColourA": 1,
"backgroundColourR": 1,
"backgroundColourG": 1,
"backgroundColourB": 1,
"fontFamily": "sample string 9",
"fontSize": 1.1,
"fontStyle": 1,
"previousForm": 1,
"previousFormG_UID": "vtmyZ7OSVkqZ5AASOPfluw==",
"previousFormGuid": "67b2d9be-92b3-4a56-99e4-001238f7e5bb",
"nextForm": 1,
"nextFormG_UID": "05KaLxejZEeo8BtEsYL0SQ==",
"nextFormGuid": "2f9a92d3-a317-4764-a8f0-1b44b182f449",
"attributes": "sample string 10",
"updated": "2026-06-03T05:16:28.1840499",
"positioning": 1,
"contentPanel": "sample string 11",
"selectionMode": 1,
"maximumSelections": 1,
"alteredInStore": true,
"deleted": true,
"blueprintID": 1,
"preserveLayout": true,
"mainCheckoutFormName": "sample string 13",
"nextCheckoutForm": {
"$ref": "2"
},
"previousCheckoutForm": {
"$ref": "2"
},
"buttons": [
{
"$id": "3",
"id": 1,
"checkoutFormID": 2,
"checkoutFormG_UID": "8ovSh0yg4EiSlZJ1CUUXqg==",
"checkoutFormGuid": "87d28bf2-a04c-48e0-9295-9275094517aa",
"identifier": "XA4dJOCIs0GVlIIHfjcrZA==",
"identifierGuid": "241d0e5c-88e0-41b3-9594-82077e372b64",
"name": "sample string 5",
"plu": 1,
"locationX": 1,
"locationY": 1,
"width": 1,
"height": 1,
"anchor": 1,
"backgroundImage": "sample string 6",
"backgroundImageID": 1,
"backgroundImageUrl": "sample string 7",
"topColour": 1,
"textColour": 1,
"bottomColour": 1,
"borderColour": 1,
"borderWidth": 1,
"radius": 1,
"gradientMode": 1,
"dropShadow": true,
"shadowWidth": 1,
"highLightOnPush": true,
"fontFamily": "sample string 8",
"fontSize": 1.1,
"fontStyle": 1,
"textAlign": 1,
"imageAlign": 1,
"wordBreak": true,
"verticalText": true,
"buttonFunction": 1,
"buttonValue": 1,
"valueG_UID": "JBDKG53CCkOhIPBvIRHD5Q==",
"valueGuid": "1bca1024-c29d-430a-a120-f06f2111c3e5",
"buttonText": "sample string 10",
"valueText": "sample string 11",
"drawImageAndButton": true,
"updated": "2026-06-03T05:16:28.1840499",
"action": "sample string 12",
"valueForm": {
"$ref": "2"
},
"image": {
"$id": "4",
"name": "sample string 3.sample string 4",
"imageID": 2,
"imageName": "sample string 3",
"imageExtension": "sample string 4",
"lastUpdate": "2026-06-03T05:16:28.1840499",
"imageData": "QEA=",
"readOnly": true
}
},
{
"$ref": "3"
}
],
"panels": [
{
"$id": "5",
"id": 1,
"checkoutFormID": 2,
"checkoutFormG_UID": "io2n4p1mGk2uVjMbA4ujLA==",
"checkoutFormGuid": "e2a78d8a-669d-4d1a-ae56-331b038ba32c",
"panelType": "sample string 4",
"name": "sample string 5",
"locationX": 6,
"locationY": 7,
"width": 8,
"height": 9,
"anchor": 10,
"fontFamily": "sample string 11",
"fontSize": 12.1,
"fontStyle": 13,
"backgroundColour": 14,
"textColour": 15,
"attributes": "sample string 16"
},
{
"$ref": "5"
}
]
}
}
application/xml
Sample not available.
text/xml
Sample not available.
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
None.