JSON API - UPDATERELATEDRES

Sets the "RelatedRes" field on the specified reservation.

Input

  • TransType: (string) "UPDATERELATEDRES"

  • Login: (string) API user's login

  • Password: (string) API user's password

  • ResNumber: (integer) The "main" reservation number on which to set RelatedRes

  • RelatedRes: (string) Slash-separated list of reservation numbers to set as related to the specified reservation

    • Note that the "main" reservation number must be included in the RelatedRes string

Output

  • Returns the updated reservation on success, or an error message on failure

Example Request

https://www.domain.com/res/json.aspx ?TransType=UPDATERELATEDRES &Login=MyAPILogin &Password=MyAPIPassword &ResNumber=12345 &RelatedRes=12345/12346/12347/12348

Â