POST v{version}/{lang}/edit?currency={currency}&wp={wp}

BookingEdit.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

string

Required

currency

string

Default value is ISK

wp

string

Default value is GG

version

The requested API version

string

Required

Default value is 1.0

Body Parameters

Collection of EditActions
NameDescriptionTypeAdditional information
type

string

None.

activityBookingId

integer

None.

pickup

boolean

None.

pickupPlaceId

integer

None.

description

string

None.

pickupGroups

Collection of WidgetPickupGroupRequestDto

None.

dropOff

boolean

None.

dropOffPlaceId

integer

None.

dropoffGroups

Collection of WidgetPickupGroupRequestDto

None.

discountPercentage

decimal number

None.

applyToExtras

boolean

None.

applyToPickupAndDropoff

boolean

None.

answers

Collection of AnswerV2

None.

extras

Collection of Extra

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "type": "sample string 1",
    "activityBookingId": 2,
    "pickup": true,
    "pickupPlaceId": 4,
    "description": "sample string 5",
    "pickupGroups": [
      {
        "id": 1,
        "place": {
          "id": 1,
          "title": "sample string 1",
          "pickupMinutesBefore": 1
        },
        "placeDescription": "sample string 2"
      },
      {
        "id": 1,
        "place": {
          "id": 1,
          "title": "sample string 1",
          "pickupMinutesBefore": 1
        },
        "placeDescription": "sample string 2"
      }
    ],
    "dropOff": true,
    "dropOffPlaceId": 7,
    "dropoffGroups": [
      {
        "id": 1,
        "place": {
          "id": 1,
          "title": "sample string 1",
          "pickupMinutesBefore": 1
        },
        "placeDescription": "sample string 2"
      },
      {
        "id": 1,
        "place": {
          "id": 1,
          "title": "sample string 1",
          "pickupMinutesBefore": 1
        },
        "placeDescription": "sample string 2"
      }
    ],
    "discountPercentage": 8.1,
    "applyToExtras": true,
    "applyToPickupAndDropoff": true,
    "answers": [
      {
        "id": 1,
        "value": "sample string 2"
      },
      {
        "id": 1,
        "value": "sample string 2"
      }
    ],
    "extras": [
      {
        "ExtraId": 1,
        "UnitCount": 2,
        "PricingCategoryId": 1,
        "BookingAnswersGroups": [
          [
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            },
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            }
          ],
          [
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            },
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            }
          ]
        ]
      },
      {
        "ExtraId": 1,
        "UnitCount": 2,
        "PricingCategoryId": 1,
        "BookingAnswersGroups": [
          [
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            },
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            }
          ],
          [
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            },
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            }
          ]
        ]
      }
    ]
  },
  {
    "type": "sample string 1",
    "activityBookingId": 2,
    "pickup": true,
    "pickupPlaceId": 4,
    "description": "sample string 5",
    "pickupGroups": [
      {
        "id": 1,
        "place": {
          "id": 1,
          "title": "sample string 1",
          "pickupMinutesBefore": 1
        },
        "placeDescription": "sample string 2"
      },
      {
        "id": 1,
        "place": {
          "id": 1,
          "title": "sample string 1",
          "pickupMinutesBefore": 1
        },
        "placeDescription": "sample string 2"
      }
    ],
    "dropOff": true,
    "dropOffPlaceId": 7,
    "dropoffGroups": [
      {
        "id": 1,
        "place": {
          "id": 1,
          "title": "sample string 1",
          "pickupMinutesBefore": 1
        },
        "placeDescription": "sample string 2"
      },
      {
        "id": 1,
        "place": {
          "id": 1,
          "title": "sample string 1",
          "pickupMinutesBefore": 1
        },
        "placeDescription": "sample string 2"
      }
    ],
    "discountPercentage": 8.1,
    "applyToExtras": true,
    "applyToPickupAndDropoff": true,
    "answers": [
      {
        "id": 1,
        "value": "sample string 2"
      },
      {
        "id": 1,
        "value": "sample string 2"
      }
    ],
    "extras": [
      {
        "ExtraId": 1,
        "UnitCount": 2,
        "PricingCategoryId": 1,
        "BookingAnswersGroups": [
          [
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            },
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            }
          ],
          [
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            },
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            }
          ]
        ]
      },
      {
        "ExtraId": 1,
        "UnitCount": 2,
        "PricingCategoryId": 1,
        "BookingAnswersGroups": [
          [
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            },
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            }
          ],
          [
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            },
            {
              "questionId": "sample string 1",
              "group": "sample string 2",
              "values": [
                "sample string 1",
                "sample string 2"
              ]
            }
          ]
        ]
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfEditActions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models">
  <EditActions>
    <activityBookingId>2</activityBookingId>
    <answers>
      <EditActions.AnswerV2>
        <id>1</id>
        <value>sample string 2</value>
      </EditActions.AnswerV2>
      <EditActions.AnswerV2>
        <id>1</id>
        <value>sample string 2</value>
      </EditActions.AnswerV2>
    </answers>
    <applyToExtras>true</applyToExtras>
    <applyToPickupAndDropoff>true</applyToPickupAndDropoff>
    <description>sample string 5</description>
    <discountPercentage>8.1</discountPercentage>
    <dropOff>true</dropOff>
    <dropOffPlaceId>7</dropOffPlaceId>
    <dropoffGroups xmlns:d3p1="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models.Widget">
      <d3p1:WidgetPickupGroupRequestDto>
        <d3p1:id>1</d3p1:id>
        <d3p1:place>
          <d3p1:id>1</d3p1:id>
          <d3p1:pickupMinutesBefore>1</d3p1:pickupMinutesBefore>
          <d3p1:title>sample string 1</d3p1:title>
        </d3p1:place>
        <d3p1:placeDescription>sample string 2</d3p1:placeDescription>
      </d3p1:WidgetPickupGroupRequestDto>
      <d3p1:WidgetPickupGroupRequestDto>
        <d3p1:id>1</d3p1:id>
        <d3p1:place>
          <d3p1:id>1</d3p1:id>
          <d3p1:pickupMinutesBefore>1</d3p1:pickupMinutesBefore>
          <d3p1:title>sample string 1</d3p1:title>
        </d3p1:place>
        <d3p1:placeDescription>sample string 2</d3p1:placeDescription>
      </d3p1:WidgetPickupGroupRequestDto>
    </dropoffGroups>
    <extras>
      <EditActions.Extra>
        <BookingAnswersGroups xmlns:d5p1="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models.Widget">
          <d5p1:ArrayOfWidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
          </d5p1:ArrayOfWidgetAnswerDto>
          <d5p1:ArrayOfWidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
          </d5p1:ArrayOfWidgetAnswerDto>
        </BookingAnswersGroups>
        <ExtraId>1</ExtraId>
        <PricingCategoryId>1</PricingCategoryId>
        <UnitCount>2</UnitCount>
      </EditActions.Extra>
      <EditActions.Extra>
        <BookingAnswersGroups xmlns:d5p1="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models.Widget">
          <d5p1:ArrayOfWidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
          </d5p1:ArrayOfWidgetAnswerDto>
          <d5p1:ArrayOfWidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
          </d5p1:ArrayOfWidgetAnswerDto>
        </BookingAnswersGroups>
        <ExtraId>1</ExtraId>
        <PricingCategoryId>1</PricingCategoryId>
        <UnitCount>2</UnitCount>
      </EditActions.Extra>
    </extras>
    <pickup>true</pickup>
    <pickupGroups xmlns:d3p1="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models.Widget">
      <d3p1:WidgetPickupGroupRequestDto>
        <d3p1:id>1</d3p1:id>
        <d3p1:place>
          <d3p1:id>1</d3p1:id>
          <d3p1:pickupMinutesBefore>1</d3p1:pickupMinutesBefore>
          <d3p1:title>sample string 1</d3p1:title>
        </d3p1:place>
        <d3p1:placeDescription>sample string 2</d3p1:placeDescription>
      </d3p1:WidgetPickupGroupRequestDto>
      <d3p1:WidgetPickupGroupRequestDto>
        <d3p1:id>1</d3p1:id>
        <d3p1:place>
          <d3p1:id>1</d3p1:id>
          <d3p1:pickupMinutesBefore>1</d3p1:pickupMinutesBefore>
          <d3p1:title>sample string 1</d3p1:title>
        </d3p1:place>
        <d3p1:placeDescription>sample string 2</d3p1:placeDescription>
      </d3p1:WidgetPickupGroupRequestDto>
    </pickupGroups>
    <pickupPlaceId>4</pickupPlaceId>
    <type>sample string 1</type>
  </EditActions>
  <EditActions>
    <activityBookingId>2</activityBookingId>
    <answers>
      <EditActions.AnswerV2>
        <id>1</id>
        <value>sample string 2</value>
      </EditActions.AnswerV2>
      <EditActions.AnswerV2>
        <id>1</id>
        <value>sample string 2</value>
      </EditActions.AnswerV2>
    </answers>
    <applyToExtras>true</applyToExtras>
    <applyToPickupAndDropoff>true</applyToPickupAndDropoff>
    <description>sample string 5</description>
    <discountPercentage>8.1</discountPercentage>
    <dropOff>true</dropOff>
    <dropOffPlaceId>7</dropOffPlaceId>
    <dropoffGroups xmlns:d3p1="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models.Widget">
      <d3p1:WidgetPickupGroupRequestDto>
        <d3p1:id>1</d3p1:id>
        <d3p1:place>
          <d3p1:id>1</d3p1:id>
          <d3p1:pickupMinutesBefore>1</d3p1:pickupMinutesBefore>
          <d3p1:title>sample string 1</d3p1:title>
        </d3p1:place>
        <d3p1:placeDescription>sample string 2</d3p1:placeDescription>
      </d3p1:WidgetPickupGroupRequestDto>
      <d3p1:WidgetPickupGroupRequestDto>
        <d3p1:id>1</d3p1:id>
        <d3p1:place>
          <d3p1:id>1</d3p1:id>
          <d3p1:pickupMinutesBefore>1</d3p1:pickupMinutesBefore>
          <d3p1:title>sample string 1</d3p1:title>
        </d3p1:place>
        <d3p1:placeDescription>sample string 2</d3p1:placeDescription>
      </d3p1:WidgetPickupGroupRequestDto>
    </dropoffGroups>
    <extras>
      <EditActions.Extra>
        <BookingAnswersGroups xmlns:d5p1="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models.Widget">
          <d5p1:ArrayOfWidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
          </d5p1:ArrayOfWidgetAnswerDto>
          <d5p1:ArrayOfWidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
          </d5p1:ArrayOfWidgetAnswerDto>
        </BookingAnswersGroups>
        <ExtraId>1</ExtraId>
        <PricingCategoryId>1</PricingCategoryId>
        <UnitCount>2</UnitCount>
      </EditActions.Extra>
      <EditActions.Extra>
        <BookingAnswersGroups xmlns:d5p1="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models.Widget">
          <d5p1:ArrayOfWidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
          </d5p1:ArrayOfWidgetAnswerDto>
          <d5p1:ArrayOfWidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
            <d5p1:WidgetAnswerDto>
              <d5p1:group>sample string 2</d5p1:group>
              <d5p1:questionId>sample string 1</d5p1:questionId>
              <d5p1:values xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </d5p1:values>
            </d5p1:WidgetAnswerDto>
          </d5p1:ArrayOfWidgetAnswerDto>
        </BookingAnswersGroups>
        <ExtraId>1</ExtraId>
        <PricingCategoryId>1</PricingCategoryId>
        <UnitCount>2</UnitCount>
      </EditActions.Extra>
    </extras>
    <pickup>true</pickup>
    <pickupGroups xmlns:d3p1="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models.Widget">
      <d3p1:WidgetPickupGroupRequestDto>
        <d3p1:id>1</d3p1:id>
        <d3p1:place>
          <d3p1:id>1</d3p1:id>
          <d3p1:pickupMinutesBefore>1</d3p1:pickupMinutesBefore>
          <d3p1:title>sample string 1</d3p1:title>
        </d3p1:place>
        <d3p1:placeDescription>sample string 2</d3p1:placeDescription>
      </d3p1:WidgetPickupGroupRequestDto>
      <d3p1:WidgetPickupGroupRequestDto>
        <d3p1:id>1</d3p1:id>
        <d3p1:place>
          <d3p1:id>1</d3p1:id>
          <d3p1:pickupMinutesBefore>1</d3p1:pickupMinutesBefore>
          <d3p1:title>sample string 1</d3p1:title>
        </d3p1:place>
        <d3p1:placeDescription>sample string 2</d3p1:placeDescription>
      </d3p1:WidgetPickupGroupRequestDto>
    </pickupGroups>
    <pickupPlaceId>4</pickupPlaceId>
    <type>sample string 1</type>
  </EditActions>
</ArrayOfEditActions>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ValueTupleOfBookingCartDtoAndInt64
NameDescriptionTypeAdditional information
Item1

BookingCartDto

None.

Item2

integer

None.

Response Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.