PUT api/Steps/{id}

Updates a step.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The id of the step to update.

globally unique identifier

Required

Body Parameters

The step model to update with.

StepDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

Required

String length: inclusive between 0 and 250

Description

string

None.

CreationDate

date

Required

ProductId

globally unique identifier

Required

SortIndex

integer

None.

Conditionals

Collection of ConditionalDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "ec713768-3788-4bf4-a644-4c5525e99a36",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "CreationDate": "2025-12-11T17:28:29.6735509Z",
  "ProductId": "c0752d8c-dcf3-4bb4-a1b0-18e8f51f4d81",
  "SortIndex": 1,
  "Conditionals": [
    {
      "Id": "27978747-631d-4a9c-bd09-6ec06fe4eac7",
      "SourceVariableId": "0bdd8855-e287-4c87-81bc-a9b0478fb1ce",
      "Operator": 0,
      "Value": "sample string 3",
      "StepId": "f563f08f-70cd-4ab1-8cb7-3fa72ab82662",
      "VariableId": "251a4929-049a-4bb8-8973-c299fca35a90",
      "OptionId": "82bb986a-9ce2-46f3-977b-3df5eaed6a26"
    },
    {
      "Id": "27978747-631d-4a9c-bd09-6ec06fe4eac7",
      "SourceVariableId": "0bdd8855-e287-4c87-81bc-a9b0478fb1ce",
      "Operator": 0,
      "Value": "sample string 3",
      "StepId": "f563f08f-70cd-4ab1-8cb7-3fa72ab82662",
      "VariableId": "251a4929-049a-4bb8-8973-c299fca35a90",
      "OptionId": "82bb986a-9ce2-46f3-977b-3df5eaed6a26"
    }
  ]
}

application/xml, text/xml

Sample:
<StepDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Template.Models">
  <Conditionals>
    <ConditionalDto>
      <Id>27978747-631d-4a9c-bd09-6ec06fe4eac7</Id>
      <Operator>Equals</Operator>
      <OptionId>82bb986a-9ce2-46f3-977b-3df5eaed6a26</OptionId>
      <SourceVariableId>0bdd8855-e287-4c87-81bc-a9b0478fb1ce</SourceVariableId>
      <StepId>f563f08f-70cd-4ab1-8cb7-3fa72ab82662</StepId>
      <Value>sample string 3</Value>
      <VariableId>251a4929-049a-4bb8-8973-c299fca35a90</VariableId>
    </ConditionalDto>
    <ConditionalDto>
      <Id>27978747-631d-4a9c-bd09-6ec06fe4eac7</Id>
      <Operator>Equals</Operator>
      <OptionId>82bb986a-9ce2-46f3-977b-3df5eaed6a26</OptionId>
      <SourceVariableId>0bdd8855-e287-4c87-81bc-a9b0478fb1ce</SourceVariableId>
      <StepId>f563f08f-70cd-4ab1-8cb7-3fa72ab82662</StepId>
      <Value>sample string 3</Value>
      <VariableId>251a4929-049a-4bb8-8973-c299fca35a90</VariableId>
    </ConditionalDto>
  </Conditionals>
  <CreationDate>2025-12-11T17:28:29.6735509+00:00</CreationDate>
  <Description>sample string 3</Description>
  <Id>ec713768-3788-4bf4-a644-4c5525e99a36</Id>
  <Name>sample string 2</Name>
  <ProductId>c0752d8c-dcf3-4bb4-a1b0-18e8f51f4d81</ProductId>
  <SortIndex>1</SortIndex>
</StepDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'StepDto'.

Response Information

Resource Description

None.