PUT api/order/{orderUuid}

Updates order with info to send to bundling

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orderUuid

Uuid for order to update

string

Required

Body Parameters

Currently only these fields are updated: * email * downloadAsBundle , sample: { "downloadAsBundle": true,"email": "user@email.no" }

Geonorge.NedlastingApi.V3.OrderType
NameDescriptionTypeAdditional information
downloadAsBundle

boolean

None.

email

string

None.

downloadBundleUrl

string

None.

orderLines

Collection of Geonorge.NedlastingApi.V3.OrderLineType

None.

usageGroup

string

None.

softwareClient

string

None.

softwareClientVersion

string

None.

_links

Collection of Geonorge.NedlastingApi.V3.LinkType

None.

Request Formats

application/json, text/json

Sample:
{
  "downloadAsBundle": false,
  "email": "bruker@epost.no",
  "orderLines": [
    {
      "areas": [
        {
          "code": "02",
          "name": "Akershus",
          "type": "fylke"
        }
      ],
      "formats": [
        {
          "name": "SOSI 4.5"
        },
        {
          "name": "GML 3.2.1"
        }
      ],
      "metadataUuid": "041f1e6e-bdbc-4091-b48f-8a5990f3cc5b",
      "projections": [
        {
          "code": "25832",
          "name": "EUREF89 UTM sone 32, 2d",
          "codespace": "http://www.opengis.net/def/crs/EPSG/0/25832"
        },
        {
          "code": "25833",
          "name": "EUREF89 UTM sone 33, 2d",
          "codespace": "http://www.opengis.net/def/crs/EPSG/0/25833"
        },
        {
          "code": "25835",
          "name": "EUREF89 UTM sone 35, 2d",
          "codespace": "http://www.opengis.net/def/crs/EPSG/0/25835"
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<Order xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://skjema.geonorge.no/SOSI/tjenestespesifikasjon/nedlastingapi/3.0">
  <downloadAsBundle>false</downloadAsBundle>
  <email>bruker@epost.no</email>
  <downloadBundleUrl xsi:nil="true" />
  <orderLines>
    <orderline>
      <areas>
        <orderarea>
          <code>02</code>
          <name>Akershus</name>
          <type>fylke</type>
          <_links xsi:nil="true" />
        </orderarea>
      </areas>
      <formats>
        <format>
          <name>SOSI 4.5</name>
          <projections xsi:nil="true" />
          <_links xsi:nil="true" />
        </format>
        <format>
          <name>GML 3.2.1</name>
          <projections xsi:nil="true" />
          <_links xsi:nil="true" />
        </format>
      </formats>
      <metadataUuid>041f1e6e-bdbc-4091-b48f-8a5990f3cc5b</metadataUuid>
      <projections>
        <projection>
          <code>25832</code>
          <name>EUREF89 UTM sone 32, 2d</name>
          <codespace>http://www.opengis.net/def/crs/EPSG/0/25832</codespace>
          <formats xsi:nil="true" />
          <_links xsi:nil="true" />
        </projection>
        <projection>
          <code>25833</code>
          <name>EUREF89 UTM sone 33, 2d</name>
          <codespace>http://www.opengis.net/def/crs/EPSG/0/25833</codespace>
          <formats xsi:nil="true" />
          <_links xsi:nil="true" />
        </projection>
        <projection>
          <code>25835</code>
          <name>EUREF89 UTM sone 35, 2d</name>
          <codespace>http://www.opengis.net/def/crs/EPSG/0/25835</codespace>
          <formats xsi:nil="true" />
          <_links xsi:nil="true" />
        </projection>
      </projections>
      <_links xsi:nil="true" />
    </orderline>
  </orderLines>
  <usageGroup xsi:nil="true" />
  <softwareClient xsi:nil="true" />
  <softwareClientVersion xsi:nil="true" />
  <_links xsi:nil="true" />
</Order>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'OrderType'.

Response Information

Resource Description

Http status code 200 if updated ok.

System.Web.Http.IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.