PUT api/Variables/{id}
Updates a variable.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The id of the variable to update. |
globally unique identifier |
Required |
Body Parameters
The variable model to update with.
VariableDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
Required String length: inclusive between 0 and 250 |
|
| Description | string |
None. |
|
| ComplianceNumber | string |
None. |
|
| ExpiryDate | date |
None. |
|
| CreationDate | date |
None. |
|
| DataType | TemplateVariableDtoDataType |
None. |
|
| DefaultValue | string |
None. |
|
| IsRequired | boolean |
None. |
|
| MinimumValueExpression | string |
String length: inclusive between 0 and 50 |
|
| MaximumValueExpression | string |
String length: inclusive between 0 and 50 |
|
| GetFromProfile | boolean |
None. |
|
| ProfileField | string |
None. |
|
| GetFromProfileAddress | boolean |
None. |
|
| AddressEditOption | TemplateVariableAddressEditOptionDto |
None. |
|
| EditState | TemplateVariableEditStateDto |
None. |
|
| Options | Collection of TemplateVariableOptionDto |
None. |
|
| TemplateId | globally unique identifier |
Required |
|
| SortIndex | integer |
None. |
|
| StepId | globally unique identifier |
None. |
|
| EditorTypeId | globally unique identifier |
None. |
|
| EditorType | EditorTypeDto |
None. |
|
| FolderId | globally unique identifier |
None. |
|
| Conditionals | Collection of ConditionalDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "3055eb4f-6a09-4af3-90dd-3e7a699c4ec9",
"Name": "sample string 2",
"Description": "sample string 3",
"ComplianceNumber": "sample string 4",
"ExpiryDate": "2026-01-11T17:51:05.3874718Z",
"CreationDate": "2026-01-11T17:51:05.3874718Z",
"DataType": 0,
"DefaultValue": "sample string 6",
"IsRequired": true,
"MinimumValueExpression": "sample string 8",
"MaximumValueExpression": "sample string 9",
"GetFromProfile": true,
"ProfileField": "sample string 11",
"GetFromProfileAddress": true,
"AddressEditOption": 0,
"EditState": 0,
"Options": [
{
"Id": "5e9b9cf2-424e-484b-a1df-9f7fb7ebbf77",
"Name": "sample string 2",
"Value": "sample string 3",
"PictureUrl": "sample string 4",
"CreationDate": "2026-01-11T17:51:05.3874718Z",
"VariableId": "3bebaa96-758a-482f-a5dc-5404c125051c",
"Conditionals": [
{
"Id": "1fa59fa8-8d43-4d32-943c-412e9f257199",
"SourceVariableId": "64a61f3d-f1b3-488f-aad3-983e6ee2b20d",
"Operator": 0,
"Value": "sample string 3",
"StepId": "e9469735-36ff-4184-81ff-1fd902fbaabc",
"VariableId": "678fb888-1244-40e9-ab1c-bcd287250bde",
"OptionId": "a67a99ec-49cf-4d52-ba25-28aad5ac5c83"
},
{
"Id": "1fa59fa8-8d43-4d32-943c-412e9f257199",
"SourceVariableId": "64a61f3d-f1b3-488f-aad3-983e6ee2b20d",
"Operator": 0,
"Value": "sample string 3",
"StepId": "e9469735-36ff-4184-81ff-1fd902fbaabc",
"VariableId": "678fb888-1244-40e9-ab1c-bcd287250bde",
"OptionId": "a67a99ec-49cf-4d52-ba25-28aad5ac5c83"
}
],
"SortIndex": 7,
"EnableCompliance": true,
"ComplianceReference": "sample string 9",
"ExpiryDate": "2026-01-11T17:51:05.3874718Z"
},
{
"Id": "5e9b9cf2-424e-484b-a1df-9f7fb7ebbf77",
"Name": "sample string 2",
"Value": "sample string 3",
"PictureUrl": "sample string 4",
"CreationDate": "2026-01-11T17:51:05.3874718Z",
"VariableId": "3bebaa96-758a-482f-a5dc-5404c125051c",
"Conditionals": [
{
"Id": "1fa59fa8-8d43-4d32-943c-412e9f257199",
"SourceVariableId": "64a61f3d-f1b3-488f-aad3-983e6ee2b20d",
"Operator": 0,
"Value": "sample string 3",
"StepId": "e9469735-36ff-4184-81ff-1fd902fbaabc",
"VariableId": "678fb888-1244-40e9-ab1c-bcd287250bde",
"OptionId": "a67a99ec-49cf-4d52-ba25-28aad5ac5c83"
},
{
"Id": "1fa59fa8-8d43-4d32-943c-412e9f257199",
"SourceVariableId": "64a61f3d-f1b3-488f-aad3-983e6ee2b20d",
"Operator": 0,
"Value": "sample string 3",
"StepId": "e9469735-36ff-4184-81ff-1fd902fbaabc",
"VariableId": "678fb888-1244-40e9-ab1c-bcd287250bde",
"OptionId": "a67a99ec-49cf-4d52-ba25-28aad5ac5c83"
}
],
"SortIndex": 7,
"EnableCompliance": true,
"ComplianceReference": "sample string 9",
"ExpiryDate": "2026-01-11T17:51:05.3874718Z"
}
],
"TemplateId": "0028503f-ce6a-485e-b529-54243e66469f",
"SortIndex": 14,
"StepId": "1095816d-9b67-4266-82b8-eadd79cbfbed",
"EditorTypeId": "0326bceb-2ae2-4b43-bbd4-715a25356963",
"EditorType": {
"Id": "d6dd9f2c-2b31-4a7a-8a06-dcad874b3b3f",
"Name": "sample string 2",
"CreationDate": "2026-01-11T17:51:05.3874718Z",
"DataType": 0
},
"FolderId": "4b18748b-28d2-4630-b736-8aad44e3126f",
"Conditionals": [
{
"Id": "1fa59fa8-8d43-4d32-943c-412e9f257199",
"SourceVariableId": "64a61f3d-f1b3-488f-aad3-983e6ee2b20d",
"Operator": 0,
"Value": "sample string 3",
"StepId": "e9469735-36ff-4184-81ff-1fd902fbaabc",
"VariableId": "678fb888-1244-40e9-ab1c-bcd287250bde",
"OptionId": "a67a99ec-49cf-4d52-ba25-28aad5ac5c83"
},
{
"Id": "1fa59fa8-8d43-4d32-943c-412e9f257199",
"SourceVariableId": "64a61f3d-f1b3-488f-aad3-983e6ee2b20d",
"Operator": 0,
"Value": "sample string 3",
"StepId": "e9469735-36ff-4184-81ff-1fd902fbaabc",
"VariableId": "678fb888-1244-40e9-ab1c-bcd287250bde",
"OptionId": "a67a99ec-49cf-4d52-ba25-28aad5ac5c83"
}
]
}
application/xml, text/xml
Sample:
<VariableDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Template.Models">
<AddressEditOption>Default</AddressEditOption>
<ComplianceNumber>sample string 4</ComplianceNumber>
<Conditionals>
<ConditionalDto>
<Id>1fa59fa8-8d43-4d32-943c-412e9f257199</Id>
<Operator>Equals</Operator>
<OptionId>a67a99ec-49cf-4d52-ba25-28aad5ac5c83</OptionId>
<SourceVariableId>64a61f3d-f1b3-488f-aad3-983e6ee2b20d</SourceVariableId>
<StepId>e9469735-36ff-4184-81ff-1fd902fbaabc</StepId>
<Value>sample string 3</Value>
<VariableId>678fb888-1244-40e9-ab1c-bcd287250bde</VariableId>
</ConditionalDto>
<ConditionalDto>
<Id>1fa59fa8-8d43-4d32-943c-412e9f257199</Id>
<Operator>Equals</Operator>
<OptionId>a67a99ec-49cf-4d52-ba25-28aad5ac5c83</OptionId>
<SourceVariableId>64a61f3d-f1b3-488f-aad3-983e6ee2b20d</SourceVariableId>
<StepId>e9469735-36ff-4184-81ff-1fd902fbaabc</StepId>
<Value>sample string 3</Value>
<VariableId>678fb888-1244-40e9-ab1c-bcd287250bde</VariableId>
</ConditionalDto>
</Conditionals>
<CreationDate>2026-01-11T17:51:05.3874718+00:00</CreationDate>
<DataType>Bool</DataType>
<DefaultValue>sample string 6</DefaultValue>
<Description>sample string 3</Description>
<EditState>Editable</EditState>
<EditorType>
<CreationDate>2026-01-11T17:51:05.3874718+00:00</CreationDate>
<DataType>Bool</DataType>
<Id>d6dd9f2c-2b31-4a7a-8a06-dcad874b3b3f</Id>
<Name>sample string 2</Name>
</EditorType>
<EditorTypeId>0326bceb-2ae2-4b43-bbd4-715a25356963</EditorTypeId>
<ExpiryDate>2026-01-11T17:51:05.3874718+00:00</ExpiryDate>
<FolderId>4b18748b-28d2-4630-b736-8aad44e3126f</FolderId>
<GetFromProfile>true</GetFromProfile>
<GetFromProfileAddress>true</GetFromProfileAddress>
<Id>3055eb4f-6a09-4af3-90dd-3e7a699c4ec9</Id>
<IsRequired>true</IsRequired>
<MaximumValueExpression>sample string 9</MaximumValueExpression>
<MinimumValueExpression>sample string 8</MinimumValueExpression>
<Name>sample string 2</Name>
<Options>
<TemplateVariableOptionDto>
<ComplianceReference>sample string 9</ComplianceReference>
<Conditionals>
<ConditionalDto>
<Id>1fa59fa8-8d43-4d32-943c-412e9f257199</Id>
<Operator>Equals</Operator>
<OptionId>a67a99ec-49cf-4d52-ba25-28aad5ac5c83</OptionId>
<SourceVariableId>64a61f3d-f1b3-488f-aad3-983e6ee2b20d</SourceVariableId>
<StepId>e9469735-36ff-4184-81ff-1fd902fbaabc</StepId>
<Value>sample string 3</Value>
<VariableId>678fb888-1244-40e9-ab1c-bcd287250bde</VariableId>
</ConditionalDto>
<ConditionalDto>
<Id>1fa59fa8-8d43-4d32-943c-412e9f257199</Id>
<Operator>Equals</Operator>
<OptionId>a67a99ec-49cf-4d52-ba25-28aad5ac5c83</OptionId>
<SourceVariableId>64a61f3d-f1b3-488f-aad3-983e6ee2b20d</SourceVariableId>
<StepId>e9469735-36ff-4184-81ff-1fd902fbaabc</StepId>
<Value>sample string 3</Value>
<VariableId>678fb888-1244-40e9-ab1c-bcd287250bde</VariableId>
</ConditionalDto>
</Conditionals>
<CreationDate>2026-01-11T17:51:05.3874718+00:00</CreationDate>
<EnableCompliance>true</EnableCompliance>
<ExpiryDate>2026-01-11T17:51:05.3874718+00:00</ExpiryDate>
<Id>5e9b9cf2-424e-484b-a1df-9f7fb7ebbf77</Id>
<Name>sample string 2</Name>
<PictureUrl>sample string 4</PictureUrl>
<SortIndex>7</SortIndex>
<Value>sample string 3</Value>
<VariableId>3bebaa96-758a-482f-a5dc-5404c125051c</VariableId>
</TemplateVariableOptionDto>
<TemplateVariableOptionDto>
<ComplianceReference>sample string 9</ComplianceReference>
<Conditionals>
<ConditionalDto>
<Id>1fa59fa8-8d43-4d32-943c-412e9f257199</Id>
<Operator>Equals</Operator>
<OptionId>a67a99ec-49cf-4d52-ba25-28aad5ac5c83</OptionId>
<SourceVariableId>64a61f3d-f1b3-488f-aad3-983e6ee2b20d</SourceVariableId>
<StepId>e9469735-36ff-4184-81ff-1fd902fbaabc</StepId>
<Value>sample string 3</Value>
<VariableId>678fb888-1244-40e9-ab1c-bcd287250bde</VariableId>
</ConditionalDto>
<ConditionalDto>
<Id>1fa59fa8-8d43-4d32-943c-412e9f257199</Id>
<Operator>Equals</Operator>
<OptionId>a67a99ec-49cf-4d52-ba25-28aad5ac5c83</OptionId>
<SourceVariableId>64a61f3d-f1b3-488f-aad3-983e6ee2b20d</SourceVariableId>
<StepId>e9469735-36ff-4184-81ff-1fd902fbaabc</StepId>
<Value>sample string 3</Value>
<VariableId>678fb888-1244-40e9-ab1c-bcd287250bde</VariableId>
</ConditionalDto>
</Conditionals>
<CreationDate>2026-01-11T17:51:05.3874718+00:00</CreationDate>
<EnableCompliance>true</EnableCompliance>
<ExpiryDate>2026-01-11T17:51:05.3874718+00:00</ExpiryDate>
<Id>5e9b9cf2-424e-484b-a1df-9f7fb7ebbf77</Id>
<Name>sample string 2</Name>
<PictureUrl>sample string 4</PictureUrl>
<SortIndex>7</SortIndex>
<Value>sample string 3</Value>
<VariableId>3bebaa96-758a-482f-a5dc-5404c125051c</VariableId>
</TemplateVariableOptionDto>
</Options>
<ProfileField>sample string 11</ProfileField>
<SortIndex>14</SortIndex>
<StepId>1095816d-9b67-4266-82b8-eadd79cbfbed</StepId>
<TemplateId>0028503f-ce6a-485e-b529-54243e66469f</TemplateId>
</VariableDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.