update-flightclass-baggage

Download Markdown for LLM

متد Update Flight Class Baggage

این متد به منظور ویرایش بار مجاز custom یک کلاس پروازی استفاده می‌شود.

توجه نمایید درصورتی که بلافاصله پس از ویرایش بار مجاز با این متد، اقدام به دریافت اطلاعات بار مجاز با استفاده از متد Get Flight Class Baggage Data کنید، ممکن است بار مجاز را با اطلاعات قبلی مشاهده کنید. برای جلوگیری از این اتفاق می‌بایست «حداکثر 5 ثانیه» صبر نموده و سپس درخواست Get Flight Class Baggage Data را اجرا کنید.


API Endpoint

POST https://{SupplierWebsiteUrl}/api/B2M/Bot/Flight/Charter/FlightManagement/Flight/FlightClass/Baggage/Update/V1

Request Parameters


Sample Request

curl -X POST https://SepehrApiTest.ir/api/B2M/Bot/Flight/Charter/FlightManagement/Flight/FlightClass/Baggage/Update/V1 \
  -H "Content-Type: application/json; charset=utf-8" \
  -H "Accept: application/json" \
  -H "Accept-Encoding: gzip, deflate" \
  -d '{
    "UserName": "testdev1",
    "Password": "25f9e794323b453885f5181f1b624d0b",
    "FlightClassId": 844418,
    "OldData": {
        "Adult_Custom": {
            "CheckedBaggage_Count": 1,
            "CheckedBaggage_TotalWeightInKg": 20,
            "HandBaggage_Count": 1,
            "HandBaggage_TotalWeightInKg": 7
        },
        "Child_Custom": {
            "CheckedBaggage_Count": 1,
            "CheckedBaggage_TotalWeightInKg": 20,
            "HandBaggage_Count": 1,
            "HandBaggage_TotalWeightInKg": 7
        },
        "Infant_Custom": {
            "CheckedBaggage_Count": 1,
            "CheckedBaggage_TotalWeightInKg": 5,
            "HandBaggage_Count": 1,
            "HandBaggage_TotalWeightInKg": 5
        }
    },
    "NewData": {
        "Adult_Custom": {
            "CheckedBaggage_Count": 0,
            "CheckedBaggage_TotalWeightInKg": 0,
            "HandBaggage_Count": 0,
            "HandBaggage_TotalWeightInKg": 0
        },
        "Child_Custom": {
            "CheckedBaggage_Count": 0,
            "CheckedBaggage_TotalWeightInKg": 0,
            "HandBaggage_Count": 0,
            "HandBaggage_TotalWeightInKg": 0
        },
        "Infant_Custom": {
            "CheckedBaggage_Count": 0,
            "CheckedBaggage_TotalWeightInKg": 0,
            "HandBaggage_Count": 0,
            "HandBaggage_TotalWeightInKg": 0
        }
    }
}'

Response Parameters


Sample Response

204 No Content