PUT api/v1/billing/rules/{ruleId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
ruleId | globally unique identifier |
Required |
Body Parameters
BillingRuleDetailsName | 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": "5205ff0b-c43a-4efa-a8e3-8f57effbb853", "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": [ "4acc78e2-a1bf-4ef8-ab49-713a9f1ac372", "44c65acc-4f09-40db-a933-fe0049000bb8" ], "MatchedStartTypes": [ 1, 2 ], "MatchedUsers": [ "7b0622eb-5299-44c5-990c-764cbd4f69a8", "4b921d31-72b6-40ff-b9e8-fb6a33ff055e" ], "MatchedFlightTypes": [ "dcbded34-a379-4c78-b6c4-75a8a19ba89c", "50d3a01c-0d34-4833-8878-7161a97a0f41" ], "Id": "5205ff0b-c43a-4efa-a8e3-8f57effbb853", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"BillingRuleId":"5205ff0b-c43a-4efa-a8e3-8f57effbb853","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":["4acc78e2-a1bf-4ef8-ab49-713a9f1ac372","44c65acc-4f09-40db-a933-fe0049000bb8"],"MatchedStartTypes":[1,2],"MatchedUsers":["7b0622eb-5299-44c5-990c-764cbd4f69a8","4b921d31-72b6-40ff-b9e8-fb6a33ff055e"],"MatchedFlightTypes":["dcbded34-a379-4c78-b6c4-75a8a19ba89c","50d3a01c-0d34-4833-8878-7161a97a0f41"],"Id":"5205ff0b-c43a-4efa-a8e3-8f57effbb853","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">5205ff0b-c43a-4efa-a8e3-8f57effbb853</Id> <BillingRuleId>5205ff0b-c43a-4efa-a8e3-8f57effbb853</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>4acc78e2-a1bf-4ef8-ab49-713a9f1ac372</d2p1:guid> <d2p1:guid>44c65acc-4f09-40db-a933-fe0049000bb8</d2p1:guid> </MatchedAircraft> <MatchedFlightTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>dcbded34-a379-4c78-b6c4-75a8a19ba89c</d2p1:guid> <d2p1:guid>50d3a01c-0d34-4833-8878-7161a97a0f41</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>7b0622eb-5299-44c5-990c-764cbd4f69a8</d2p1:guid> <d2p1:guid>4b921d31-72b6-40ff-b9e8-fb6a33ff055e</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
BillingRuleDetailsName | 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": "c5cb8ac6-da66-4472-b9ef-86f073001366", "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": [ "e36be577-0d64-4795-ac26-f07623ed8660", "7b3d6238-1de1-4185-9fc8-6d92d4222d14" ], "MatchedStartTypes": [ 1, 2 ], "MatchedUsers": [ "5969660e-a5d5-4382-9798-dc2820454901", "030ed1e6-e131-403f-b7ca-8e9a6c4acf6b" ], "MatchedFlightTypes": [ "9e664989-5a8f-47a8-b5de-f01158709e9c", "f5146cfa-14ae-407d-8ef7-f3f1b892a7a2" ], "Id": "c5cb8ac6-da66-4472-b9ef-86f073001366", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"BillingRuleId":"c5cb8ac6-da66-4472-b9ef-86f073001366","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":["e36be577-0d64-4795-ac26-f07623ed8660","7b3d6238-1de1-4185-9fc8-6d92d4222d14"],"MatchedStartTypes":[1,2],"MatchedUsers":["5969660e-a5d5-4382-9798-dc2820454901","030ed1e6-e131-403f-b7ca-8e9a6c4acf6b"],"MatchedFlightTypes":["9e664989-5a8f-47a8-b5de-f01158709e9c","f5146cfa-14ae-407d-8ef7-f3f1b892a7a2"],"Id":"c5cb8ac6-da66-4472-b9ef-86f073001366","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">c5cb8ac6-da66-4472-b9ef-86f073001366</Id> <BillingRuleId>c5cb8ac6-da66-4472-b9ef-86f073001366</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>e36be577-0d64-4795-ac26-f07623ed8660</d2p1:guid> <d2p1:guid>7b3d6238-1de1-4185-9fc8-6d92d4222d14</d2p1:guid> </MatchedAircraft> <MatchedFlightTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>9e664989-5a8f-47a8-b5de-f01158709e9c</d2p1:guid> <d2p1:guid>f5146cfa-14ae-407d-8ef7-f3f1b892a7a2</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>5969660e-a5d5-4382-9798-dc2820454901</d2p1:guid> <d2p1:guid>030ed1e6-e131-403f-b7ca-8e9a6c4acf6b</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>