PUT api/v1/billing/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

BillingDetails
NameDescriptionTypeAdditional information
BillingId

globally unique identifier

None.

Name

string

None.

Description

string

None.

IsForGliderFlights

boolean

None.

IsForMotorFlights

boolean

None.

IsForTowFlights

boolean

None.

Rules

Collection of globally unique identifier

None.

CumulativeRules

Collection of globally unique identifier

None.

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "BillingId": "38baaa64-34c7-468b-b681-4015d2dd91b7",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "IsForGliderFlights": true,
  "IsForMotorFlights": true,
  "IsForTowFlights": true,
  "Rules": [
    "185c244a-0319-486f-95f4-9c312b9964e2",
    "f62d4be9-c3ed-4b7d-80cc-5d8f22eb291c"
  ],
  "CumulativeRules": [
    "368ae4ad-f807-47bf-882a-f17fed334b29",
    "e0465d62-8971-4fdb-8134-e3e0a7c54cb6"
  ],
  "Id": "38baaa64-34c7-468b-b681-4015d2dd91b7",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"BillingId":"38baaa64-34c7-468b-b681-4015d2dd91b7","Name":"sample string 2","Description":"sample string 3","IsForGliderFlights":true,"IsForMotorFlights":true,"IsForTowFlights":true,"Rules":["185c244a-0319-486f-95f4-9c312b9964e2","f62d4be9-c3ed-4b7d-80cc-5d8f22eb291c"],"CumulativeRules":["368ae4ad-f807-47bf-882a-f17fed334b29","e0465d62-8971-4fdb-8134-e3e0a7c54cb6"],"Id":"38baaa64-34c7-468b-b681-4015d2dd91b7","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<BillingDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Billings">
  <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord>
  <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord>
  <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">38baaa64-34c7-468b-b681-4015d2dd91b7</Id>
  <BillingId>38baaa64-34c7-468b-b681-4015d2dd91b7</BillingId>
  <CumulativeRules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>368ae4ad-f807-47bf-882a-f17fed334b29</d2p1:guid>
    <d2p1:guid>e0465d62-8971-4fdb-8134-e3e0a7c54cb6</d2p1:guid>
  </CumulativeRules>
  <Description>sample string 3</Description>
  <IsForGliderFlights>true</IsForGliderFlights>
  <IsForMotorFlights>true</IsForMotorFlights>
  <IsForTowFlights>true</IsForTowFlights>
  <Name>sample string 2</Name>
  <Rules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>185c244a-0319-486f-95f4-9c312b9964e2</d2p1:guid>
    <d2p1:guid>f62d4be9-c3ed-4b7d-80cc-5d8f22eb291c</d2p1:guid>
  </Rules>
</BillingDetails>

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 'BillingDetails'.

Response Information

Resource Description

BillingDetails
NameDescriptionTypeAdditional information
BillingId

globally unique identifier

None.

Name

string

None.

Description

string

None.

IsForGliderFlights

boolean

None.

IsForMotorFlights

boolean

None.

IsForTowFlights

boolean

None.

Rules

Collection of globally unique identifier

None.

CumulativeRules

Collection of globally unique identifier

None.

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "BillingId": "165a4098-29d5-49d9-920b-38ba14cbc5ea",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "IsForGliderFlights": true,
  "IsForMotorFlights": true,
  "IsForTowFlights": true,
  "Rules": [
    "367c38bf-5b45-4cb1-9afe-fc8d4c080507",
    "f73abb9f-e05a-4f62-9253-5debab6f12d8"
  ],
  "CumulativeRules": [
    "c7ce4b88-81a4-4a79-a483-af49a359c078",
    "fb84308c-0352-493e-a9f0-2ec63d5be703"
  ],
  "Id": "165a4098-29d5-49d9-920b-38ba14cbc5ea",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"BillingId":"165a4098-29d5-49d9-920b-38ba14cbc5ea","Name":"sample string 2","Description":"sample string 3","IsForGliderFlights":true,"IsForMotorFlights":true,"IsForTowFlights":true,"Rules":["367c38bf-5b45-4cb1-9afe-fc8d4c080507","f73abb9f-e05a-4f62-9253-5debab6f12d8"],"CumulativeRules":["c7ce4b88-81a4-4a79-a483-af49a359c078","fb84308c-0352-493e-a9f0-2ec63d5be703"],"Id":"165a4098-29d5-49d9-920b-38ba14cbc5ea","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<BillingDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Billings">
  <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord>
  <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord>
  <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">165a4098-29d5-49d9-920b-38ba14cbc5ea</Id>
  <BillingId>165a4098-29d5-49d9-920b-38ba14cbc5ea</BillingId>
  <CumulativeRules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>c7ce4b88-81a4-4a79-a483-af49a359c078</d2p1:guid>
    <d2p1:guid>fb84308c-0352-493e-a9f0-2ec63d5be703</d2p1:guid>
  </CumulativeRules>
  <Description>sample string 3</Description>
  <IsForGliderFlights>true</IsForGliderFlights>
  <IsForMotorFlights>true</IsForMotorFlights>
  <IsForTowFlights>true</IsForTowFlights>
  <Name>sample string 2</Name>
  <Rules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>367c38bf-5b45-4cb1-9afe-fc8d4c080507</d2p1:guid>
    <d2p1:guid>f73abb9f-e05a-4f62-9253-5debab6f12d8</d2p1:guid>
  </Rules>
</BillingDetails>