API Docs
YMS API
Appointment/Level 1
POST Update Appointment Information

POST Update Appointment Information

Introduction

Updates an existing appointment's details in the Yard Management System (YMS). This endpoint allows modifications to appointment time, carrier assignment, customer associations, and action details. Supports change tracking with reason codes for audit purposes. Used when appointments need rescheduling, carrier reassignment, or service type modifications. The system validates new time slot availability and ensures changes comply with operational constraints before applying updates.

API Request

POST /appointment/{appointmentId}/update

Body Request Parameters

{
  "appointmentTime": "string",
  "carrierId": "string",
  "customerIds": [
    "string"
  ],
  "change": {
    "appointmentId": "string",
    "changeType": "UPDATE",
    "appointmentTimeFrom": "string",
    "appointmentTimeTo": "string",
    "missAppointment": true,
    "note": "string",
    "reason": "string",
    "receiptIds": [
      "string"
    ],
    "loadIds": [
      "string"
    ],
    "originalInboundAction": "string",
    "originalReceiptIds": [
      "string"
    ],
    "originalOutboundAction": "string",
    "originalLoadIds": [
      "string"
    ],
    "nowInboundAction": "string",
    "nowOutboundAction": "string"
  },
  "inboundAction": {
    "appointmentId": "string",
    "appointmentType": "INBOUND",
    "serviceType": "string",
    "appointmentTime": "string",
    "referenceIds": [
      "string"
    ],
    "customerIds": [
      "string"
    ]
  },
  "outboundAction": {
    "appointmentId": "string",
    "appointmentType": "INBOUND",
    "serviceType": "string",
    "appointmentTime": "string",
    "referenceIds": [
      "string"
    ],
    "customerIds": [
      "string"
    ]
  },
  "updateAction": true,
  "finalCarrierId": "string",
  "driverId": "string",
  "carrierReference": "string",
  "carrierNotes": "string",
  "cargoStatus": "UNKNOWN",
  "notes": "string",
  "operator": "CARRIER"
}

Request Parameters

NameLocationTypeRequiredDescription
appointmentIdpathstringYesAppointment ID
X-Tenant-IDheaderstringNonone
X-Yard-IDheaderstringNonone
Item-Time-ZoneheaderstringNonone
AuthorizationheaderstringNonone
Item-Bam-ClientheaderstringNonone
x-facility-idheaderstringNonone
bodybodyobjectNonone
» appointmentTimebodystringYesUpdated appointment time
» carrierIdbodystringYesUpdated carrier identifier
» customerIdsbody[string]NoUpdated list of customer identifiers
» changebodyAppointmentChangeCreateCmdYesChange record for tracking modifications
»» appointmentIdbodystringYesAppointment identifier
»» changeTypebodystringNoType of change made
»» appointmentTimeFrombodystringNoOriginal appointment time
»» appointmentTimeTobodystringNoNew appointment time
»» missAppointmentbodybooleanNoFlag indicating if appointment time was missed
»» notebodystringNoAdditional notes or comments
»» reasonbodystringNoReason for the change
»» receiptIdsbody[string]NoCurrent receipt IDs
»» loadIdsbody[string]NoCurrent load IDs
»» originalInboundActionbodystringNoOriginal inbound action
»» originalReceiptIdsbody[string]NoOriginal receipt IDs
»» originalOutboundActionbodystringNoOriginal outbound action
»» originalLoadIdsbody[string]NoOriginal load IDs
»» nowInboundActionbodystringNoCurrent inbound action at the time of change
»» nowOutboundActionbodystringNoCurrent outbound action at the time of change
» inboundActionbodyAppointmentActionCreateCmdNoUpdated inbound action details
»» appointmentIdbodystringNoAppointment identifier
»» appointmentTypebodystringYesType of appointment action
»» serviceTypebodystringYesService type for the action
»» appointmentTimebodystringNoScheduled time for the action
»» referenceIdsbody[string]NoList of reference numbers
»» customerIdsbody[string]NoList of customer identifiers
» outboundActionbodyAppointmentActionCreateCmdNoUpdated outbound action details
»» appointmentIdbodystringNoAppointment identifier
»» appointmentTypebodystringYesType of appointment action
»» serviceTypebodystringYesService type for the action
»» appointmentTimebodystringNoScheduled time for the action
»» referenceIdsbody[string]NoList of reference numbers
»» customerIdsbody[string]NoList of customer identifiers
» updateActionbodybooleanYesFlag to indicate whether to update action records
» finalCarrierIdbodystringNoSub-carrier identifier
» driverIdbodystringNoDriver identifier
» carrierReferencebodystringNoCarrier reference number
» carrierNotesbodystringNoCarrier notes or comments
» cargoStatusbodystringNoCargo status
» notesbodystringNoNote or remarks for the appointment
» operatorbodystringNoOperator who updates the appointment (carrier, customer, or internal). Not persisted to database.

Enum Values

PropertyValue
»» changeTypeUPDATE
»» changeTypeCANCEL
»» changeTypeASSIGN_DRIVER
»» changeTypeCOMPLETE_PRE_CHECK_IN
»» changeTypeCOMPLETE_CHECK_IN
»» appointmentTypeINBOUND
»» appointmentTypeOUTBOUND
»» appointmentTypeBOTH
»» appointmentTypeINBOUND
»» appointmentTypeOUTBOUND
»» appointmentTypeBOTH
» cargoStatusUNKNOWN
» cargoStatusFULL
» cargoStatusEMPTY
» cargoStatusFULL_AFTER_LOADED
» cargoStatusEMPTY_AFTER_OFFLOAD
» operatorCARRIER
» operatorCUSTOMER
» operatorINTERNAL

Response Example

200 Response

{
    "code": 0,
    "msg": "",
    "success": false,
    "data": {
        "id": 0,
        "appointmentId": "",
        "appointmentType": "",
        "carrierId": "",
        "carrierName": "",
        "finalCarrierId": "",
        "subCarrierName": "",
        "appointmentTime": "",
        "appointmentStatus": "",
        "customerIds": [
            ""
        ],
        "externalId": 0,
        "entryId": "",
        "referenceCode": "",
        "driverId": "",
        "createdTime": "",
        "createdBy": "",
        "updatedTime": "",
        "updatedBy": "",
        "customerNames": [
            ""
        ],
        "appointmentActionViews": [
            {
                "id": 0,
                "appointmentId": "",
                "appointmentType": "",
                "serviceType": "",
                "appointmentTime": "",
                "referenceIds": [
                    ""
                ],
                "createdTime": "",
                "createdBy": "",
                "updatedTime": "",
                "updatedBy": "",
                "loadViews": [
                    {
                        "id": "",
                        "loadId": "",
                        "loadStatus": "",
                        "loadNo": "",
                        "shipMethod": "",
                        "carrierId": "",
                        "appointmentTime": "",
                        "appointmentId": "",
                        "orderIds": [
                            ""
                        ],
                        "customerId": "",
                        "masterBol": "",
                        "sealNo": "",
                        "customerName": "",
                        "carrierName": "",
                        "orderViews": [
                            {
                                "id": 0,
                                "orderId": "",
                                "orderStatus": "",
                                "customerId": "",
                                "poNo": "",
                                "referenceNo": "",
                                "retailer": "",
                                "shipFrom": "",
                                "shipTo": "",
                                "totalPalletQty": 0,
                                "totalCartonQty": 0,
                                "itemInfos": [
                                    {
                                        "itemId": "",
                                        "itemName": "",
                                        "itemQty": "",
                                        "palletQty": "",
                                        "itemSpecDesc": "",
                                        "itemSpecName": "",
                                        "uomId": "",
                                        "qty": ""
                                    }
                                ],
                                "customerName": "",
                                "carrierName": "",
                                "shipToAddress": {
                                    "id": "",
                                    "name": "",
                                    "country": "",
                                    "state": "",
                                    "city": "",
                                    "zipCode": "",
                                    "fax": "",
                                    "address1": "",
                                    "address2": "",
                                    "contact": "",
                                    "phone": "",
                                    "extension": "",
                                    "email": "",
                                    "orgId": "",
                                    "orgName": "",
                                    "referenceNo": "",
                                    "batchCode": "",
                                    "storeNo": "",
                                    "shorthand": "",
                                    "toHome": false,
                                    "tags": [
                                        ""
                                    ],
                                    "latitude": "",
                                    "longitude": "",
                                    "crmAddressId": ""
                                },
                                "shipFromAddress": {
                                    "id": "",
                                    "name": "",
                                    "country": "",
                                    "state": "",
                                    "city": "",
                                    "zipCode": "",
                                    "fax": "",
                                    "address1": "",
                                    "address2": "",
                                    "contact": "",
                                    "phone": "",
                                    "extension": "",
                                    "email": "",
                                    "orgId": "",
                                    "orgName": "",
                                    "referenceNo": "",
                                    "batchCode": "",
                                    "storeNo": "",
                                    "shorthand": "",
                                    "toHome": false,
                                    "tags": [
                                        ""
                                    ],
                                    "latitude": "",
                                    "longitude": "",
                                    "crmAddressId": ""
                                },
                                "appointmentTime": "",
                                "dynamicFieldValues": [
                                    {
                                        "entityId": "",
                                        "entityType": "",
                                        "fieldCode": "",
                                        "value": "",
                                        "fieldName": "",
                                        "longValue": "",
                                        "shortValue": ""
                                    }
                                ],
                                "proNos": [
                                    ""
                                ],
                                "invoicePros": [
                                    ""
                                ],
                                "doNos": [
                                    ""
                                ],
                                "tripNo": "",
                                "shippedTime": ""
                            }
                        ],
                        "dynamicFieldValues": [
                            {
                                "entityId": "",
                                "entityType": "",
                                "fieldCode": "",
                                "value": "",
                                "fieldName": "",
                                "longValue": "",
                                "shortValue": ""
                            }
                        ],
                        "equipmentType": "",
                        "equipmentNo": "",
                        "referenceNoList": [
                            ""
                        ],
                        "poNoList": [
                            ""
                        ],
                        "templateLoadKey": "",
                        "proNos": [
                            ""
                        ],
                        "invoicePros": [
                            ""
                        ],
                        "doNos": [
                            ""
                        ],
                        "tripNos": [
                            ""
                        ],
                        "loadType": "",
                        "stagingLocationName": "",
                        "shippedTime": ""
                    }
                ],
                "receiptViews": [
                    {
                        "id": 0,
                        "receiptId": "",
                        "receiptStatus": "",
                        "receiptType": "",
                        "poNo": "",
                        "carrierId": "",
                        "customerId": "",
                        "referenceNo": "",
                        "equipmentType": "",
                        "equipmentNo": "",
                        "totalPalletQty": 0,
                        "itemLines": [
                            {
                                "itemId": "",
                                "itemName": "",
                                "itemQty": "",
                                "palletQty": "",
                                "itemSpecDesc": "",
                                "itemSpecName": "",
                                "uomId": "",
                                "qty": ""
                            }
                        ],
                        "appointmentTime": "",
                        "appointmentId": "",
                        "sealNo": "",
                        "dataChannel": "",
                        "eventTime": "",
                        "extraData": "",
                        "carrierName": "",
                        "customerName": "",
                        "dynamicFieldValues": [
                            {
                                "entityId": "",
                                "entityType": "",
                                "fieldCode": "",
                                "value": "",
                                "fieldName": "",
                                "longValue": "",
                                "shortValue": ""
                            }
                        ],
                        "proNos": [
                            ""
                        ],
                        "invoicePros": [
                            ""
                        ],
                        "doNos": [
                            ""
                        ],
                        "tripNo": ""
                    }
                ]
            }
        ],
        "driverSnapshot": "",
        "driverSnapshotParse": {
            "driverId": "",
            "firstName": "",
            "middleName": "",
            "lastName": "",
            "driverPhone": "",
            "phone": "",
            "licenseNumber": "",
            "licenseExpirationDate": "",
            "licenseState": "",
            "email": "",
            "licensePlate": "",
            "carrierName": "",
            "carrierId": "",
            "usdot": "",
            "equipmentNo": "",
            "equipmentType": "",
            "cargoStatus": ""
        },
        "serviceTypes": [
            ""
        ],
        "checkedInTime": "",
        "carrierFinishTime": "",
        "driverFinishTime": "",
        "finalCarrierView": {
            "carrierId": "",
            "carrierName": "",
            "scac": [
                ""
            ],
            "usdot": "",
            "mcNumber": "",
            "verified": false,
            "createdTime": "",
            "createdBy": "",
            "updatedTime": "",
            "updatedBy": "",
            "carrierStatus": "",
            "knownName": "",
            "orgIds": [
                ""
            ]
        },
        "cargoStatus": "",
        "notes": ""
    }
}

Response

Status CodeDefinitionDescriptionData Model
200OK (opens in a new tab)noneRAppointmentView