Updates the metadata of a tracked shipment.
Arguments
Name | Type | Description |
---|---|---|
trackedShipmentsMetadata | [TrackedShipmentMetadataInput!]! | The metadata attribute to be updated by the user. |
TrackedShipmentMetadataInput Fields
Name | Type | Description |
---|---|---|
eta | DateTime | The updated estimated time of arrival provided by the user. |
etd | DateTime | The updated estimated time of departure provided by the user. |
jobNumber | String | The updated Job number provided by the user. |
pod | Locode | The updated Port of discharge (UN Locode) provided by the user. |
pol | Locode | The updated Port of load (UN Locode) provided by the user. |
trackedShipmentId | ObjectId | The updated MongoDB tracked shipment ID. |
Returns
Name | Description |
---|---|
Boolean | Whether the update succeeded. |
Example Code
Sample Mutation
mutation UpdateTrackedShipmentsMetadata($trackedShipmentsMetadata: [TrackedShipmentMetadataInput!]!) {
updateTrackedShipmentsMetadata(trackedShipmentsMetadata: $trackedShipmentsMetadata)
}
Variables
{
"trackedShipmentsMetadata": [
{
"eta": "2022-03-02T00:00:00.000Z",
"etd": "2022-01-03T00:00:00.000Z",
"jobNumber": null,
"pod": "CNNSA",
"pol": "GBSOU",
"trackedShipmentId": "621ca0a820912bbfa247733c"
}
]
}
Response
{
"data":{
"updateTrackedShipmentsMetadata":true
}
}