...
Code Block |
---|
graphql.mutable_attributes = "vehicle.occupancyStatus,vehicle.occupacyRateoccupancyRate" |
By using one of the tokens associated to this Partner, the specified attributs can be modified by mutation GraphQL requests.
...
For example, to update the current occupancyStatus
/ occupacyRate
occupancyRate
of a Vehicle:
Code Block | ||
---|---|---|
| ||
mutation { updateVehicle(code: "24389", input: { occupancyStatus: "seatsAvailable", occupacyRateoccupancyRate: 0.65 }) { code occupancyStatus occupancyRate } } mutation { updateVehicle(code: "24389", input: { occupancyStatus: "seatsAvailable"}) { code } } mutation { updateVehicle(code: "24389", input: { occupacyRateoccupancyRate: 0.65 }) { code } } |
Multiple mutations can be performed into a single request by using the GraphQL multiple queries mechanism.
...