PUT api/v1/billing/rules/{ruleId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ruleId | globally unique identifier |
Required |
Body Parameters
BillingRuleDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| BillingRuleId | globally unique identifier |
None. |
|
| BillingRuleTypeName | string |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| IsForGliderFlights | boolean |
None. |
|
| IsForTowFlights | boolean |
None. |
|
| IsForMotorFlights | boolean |
None. |
|
| NegateListedAircraft | boolean |
None. |
|
| NegateListedStartTypes | boolean |
None. |
|
| NegateListedUsers | boolean |
None. |
|
| NegateListedFlightTypes | boolean |
None. |
|
| MinFlightTime | integer |
None. |
|
| MaxFlightTime | integer |
None. |
|
| MinReleaseHeight | integer |
None. |
|
| MaxReleaseHeight | integer |
None. |
|
| RuleData | string |
None. |
|
| IsCumulative | boolean |
None. |
|
| MatchedAircraft | Collection of globally unique identifier |
None. |
|
| MatchedStartTypes | Collection of integer |
None. |
|
| MatchedUsers | Collection of globally unique identifier |
None. |
|
| MatchedFlightTypes | Collection of globally unique identifier |
None. |
|
| Id | globally unique identifier |
None. |
|
| CanUpdateRecord | boolean |
None. |
|
| CanDeleteRecord | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"BillingRuleId": "18f7229c-1bcf-46cf-aaff-80883d77c8a2",
"BillingRuleTypeName": "sample string 2",
"Name": "sample string 3",
"Description": "sample string 4",
"IsForGliderFlights": true,
"IsForTowFlights": true,
"IsForMotorFlights": true,
"NegateListedAircraft": true,
"NegateListedStartTypes": true,
"NegateListedUsers": true,
"NegateListedFlightTypes": true,
"MinFlightTime": 1,
"MaxFlightTime": 1,
"MinReleaseHeight": 1,
"MaxReleaseHeight": 1,
"RuleData": "sample string 12",
"IsCumulative": true,
"MatchedAircraft": [
"c0442fec-fae6-45c9-8822-c6a7db769f93",
"bbc6171a-a671-4c14-b26c-d19938c7a5f3"
],
"MatchedStartTypes": [
1,
2
],
"MatchedUsers": [
"f10c5e25-d45b-4b7b-a113-13f41afef51e",
"0ca67e5a-8ab9-4b12-978e-92acd787c59c"
],
"MatchedFlightTypes": [
"4c85d1b0-4435-420c-a955-d9201fe649d7",
"1fa1d2e8-1b34-4539-bb2f-7f66864e4098"
],
"Id": "18f7229c-1bcf-46cf-aaff-80883d77c8a2",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"BillingRuleId":"18f7229c-1bcf-46cf-aaff-80883d77c8a2","BillingRuleTypeName":"sample string 2","Name":"sample string 3","Description":"sample string 4","IsForGliderFlights":true,"IsForTowFlights":true,"IsForMotorFlights":true,"NegateListedAircraft":true,"NegateListedStartTypes":true,"NegateListedUsers":true,"NegateListedFlightTypes":true,"MinFlightTime":1,"MaxFlightTime":1,"MinReleaseHeight":1,"MaxReleaseHeight":1,"RuleData":"sample string 12","IsCumulative":true,"MatchedAircraft":["c0442fec-fae6-45c9-8822-c6a7db769f93","bbc6171a-a671-4c14-b26c-d19938c7a5f3"],"MatchedStartTypes":[1,2],"MatchedUsers":["f10c5e25-d45b-4b7b-a113-13f41afef51e","0ca67e5a-8ab9-4b12-978e-92acd787c59c"],"MatchedFlightTypes":["4c85d1b0-4435-420c-a955-d9201fe649d7","1fa1d2e8-1b34-4539-bb2f-7f66864e4098"],"Id":"18f7229c-1bcf-46cf-aaff-80883d77c8a2","CanUpdateRecord":true,"CanDeleteRecord":true}
application/xml, text/xml
Sample:
<BillingRuleDetails 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">18f7229c-1bcf-46cf-aaff-80883d77c8a2</Id>
<BillingRuleId>18f7229c-1bcf-46cf-aaff-80883d77c8a2</BillingRuleId>
<BillingRuleTypeName>sample string 2</BillingRuleTypeName>
<Description>sample string 4</Description>
<IsCumulative>true</IsCumulative>
<IsForGliderFlights>true</IsForGliderFlights>
<IsForMotorFlights>true</IsForMotorFlights>
<IsForTowFlights>true</IsForTowFlights>
<MatchedAircraft xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>c0442fec-fae6-45c9-8822-c6a7db769f93</d2p1:guid>
<d2p1:guid>bbc6171a-a671-4c14-b26c-d19938c7a5f3</d2p1:guid>
</MatchedAircraft>
<MatchedFlightTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>4c85d1b0-4435-420c-a955-d9201fe649d7</d2p1:guid>
<d2p1:guid>1fa1d2e8-1b34-4539-bb2f-7f66864e4098</d2p1:guid>
</MatchedFlightTypes>
<MatchedStartTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</MatchedStartTypes>
<MatchedUsers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>f10c5e25-d45b-4b7b-a113-13f41afef51e</d2p1:guid>
<d2p1:guid>0ca67e5a-8ab9-4b12-978e-92acd787c59c</d2p1:guid>
</MatchedUsers>
<MaxFlightTime>1</MaxFlightTime>
<MaxReleaseHeight>1</MaxReleaseHeight>
<MinFlightTime>1</MinFlightTime>
<MinReleaseHeight>1</MinReleaseHeight>
<Name>sample string 3</Name>
<NegateListedAircraft>true</NegateListedAircraft>
<NegateListedFlightTypes>true</NegateListedFlightTypes>
<NegateListedStartTypes>true</NegateListedStartTypes>
<NegateListedUsers>true</NegateListedUsers>
<RuleData>sample string 12</RuleData>
</BillingRuleDetails>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
BillingRuleDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| BillingRuleId | globally unique identifier |
None. |
|
| BillingRuleTypeName | string |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| IsForGliderFlights | boolean |
None. |
|
| IsForTowFlights | boolean |
None. |
|
| IsForMotorFlights | boolean |
None. |
|
| NegateListedAircraft | boolean |
None. |
|
| NegateListedStartTypes | boolean |
None. |
|
| NegateListedUsers | boolean |
None. |
|
| NegateListedFlightTypes | boolean |
None. |
|
| MinFlightTime | integer |
None. |
|
| MaxFlightTime | integer |
None. |
|
| MinReleaseHeight | integer |
None. |
|
| MaxReleaseHeight | integer |
None. |
|
| RuleData | string |
None. |
|
| IsCumulative | boolean |
None. |
|
| MatchedAircraft | Collection of globally unique identifier |
None. |
|
| MatchedStartTypes | Collection of integer |
None. |
|
| MatchedUsers | Collection of globally unique identifier |
None. |
|
| MatchedFlightTypes | Collection of globally unique identifier |
None. |
|
| Id | globally unique identifier |
None. |
|
| CanUpdateRecord | boolean |
None. |
|
| CanDeleteRecord | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"BillingRuleId": "065f0b4e-f4b9-457c-bdbc-d68b0c556dc6",
"BillingRuleTypeName": "sample string 2",
"Name": "sample string 3",
"Description": "sample string 4",
"IsForGliderFlights": true,
"IsForTowFlights": true,
"IsForMotorFlights": true,
"NegateListedAircraft": true,
"NegateListedStartTypes": true,
"NegateListedUsers": true,
"NegateListedFlightTypes": true,
"MinFlightTime": 1,
"MaxFlightTime": 1,
"MinReleaseHeight": 1,
"MaxReleaseHeight": 1,
"RuleData": "sample string 12",
"IsCumulative": true,
"MatchedAircraft": [
"88e57fc0-ecae-47fe-913a-3c905d448ea5",
"ea90de2b-71ec-486d-9dad-dc123b4e74a6"
],
"MatchedStartTypes": [
1,
2
],
"MatchedUsers": [
"fa22dc55-298c-4f52-ac70-8f84f0abb72e",
"45bda908-966a-4de2-b183-605fea8cce63"
],
"MatchedFlightTypes": [
"bc5b186b-770a-44cc-83c5-06066f7bcea4",
"d4b11cc8-7c77-4d68-b77e-74a47c539c0f"
],
"Id": "065f0b4e-f4b9-457c-bdbc-d68b0c556dc6",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"BillingRuleId":"065f0b4e-f4b9-457c-bdbc-d68b0c556dc6","BillingRuleTypeName":"sample string 2","Name":"sample string 3","Description":"sample string 4","IsForGliderFlights":true,"IsForTowFlights":true,"IsForMotorFlights":true,"NegateListedAircraft":true,"NegateListedStartTypes":true,"NegateListedUsers":true,"NegateListedFlightTypes":true,"MinFlightTime":1,"MaxFlightTime":1,"MinReleaseHeight":1,"MaxReleaseHeight":1,"RuleData":"sample string 12","IsCumulative":true,"MatchedAircraft":["88e57fc0-ecae-47fe-913a-3c905d448ea5","ea90de2b-71ec-486d-9dad-dc123b4e74a6"],"MatchedStartTypes":[1,2],"MatchedUsers":["fa22dc55-298c-4f52-ac70-8f84f0abb72e","45bda908-966a-4de2-b183-605fea8cce63"],"MatchedFlightTypes":["bc5b186b-770a-44cc-83c5-06066f7bcea4","d4b11cc8-7c77-4d68-b77e-74a47c539c0f"],"Id":"065f0b4e-f4b9-457c-bdbc-d68b0c556dc6","CanUpdateRecord":true,"CanDeleteRecord":true}
application/xml, text/xml
Sample:
<BillingRuleDetails 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">065f0b4e-f4b9-457c-bdbc-d68b0c556dc6</Id>
<BillingRuleId>065f0b4e-f4b9-457c-bdbc-d68b0c556dc6</BillingRuleId>
<BillingRuleTypeName>sample string 2</BillingRuleTypeName>
<Description>sample string 4</Description>
<IsCumulative>true</IsCumulative>
<IsForGliderFlights>true</IsForGliderFlights>
<IsForMotorFlights>true</IsForMotorFlights>
<IsForTowFlights>true</IsForTowFlights>
<MatchedAircraft xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>88e57fc0-ecae-47fe-913a-3c905d448ea5</d2p1:guid>
<d2p1:guid>ea90de2b-71ec-486d-9dad-dc123b4e74a6</d2p1:guid>
</MatchedAircraft>
<MatchedFlightTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>bc5b186b-770a-44cc-83c5-06066f7bcea4</d2p1:guid>
<d2p1:guid>d4b11cc8-7c77-4d68-b77e-74a47c539c0f</d2p1:guid>
</MatchedFlightTypes>
<MatchedStartTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</MatchedStartTypes>
<MatchedUsers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>fa22dc55-298c-4f52-ac70-8f84f0abb72e</d2p1:guid>
<d2p1:guid>45bda908-966a-4de2-b183-605fea8cce63</d2p1:guid>
</MatchedUsers>
<MaxFlightTime>1</MaxFlightTime>
<MaxReleaseHeight>1</MaxReleaseHeight>
<MinFlightTime>1</MinFlightTime>
<MinReleaseHeight>1</MinReleaseHeight>
<Name>sample string 3</Name>
<NegateListedAircraft>true</NegateListedAircraft>
<NegateListedFlightTypes>true</NegateListedFlightTypes>
<NegateListedStartTypes>true</NegateListedStartTypes>
<NegateListedUsers>true</NegateListedUsers>
<RuleData>sample string 12</RuleData>
</BillingRuleDetails>