# UpdateLoadStatus

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /services/api/rest/UpdateLoadStatus:
    post:
      summary: UpdateLoadStatus
      deprecated: false
      description: >-
        This function will change the status of a shipment. This will return the
        identification number of the shipment that was updated. 


        **This function is not to be used to switch shipments between booked or
        dispatched back to open or vice versa.**


        Suggested uses of this function include:
          
          - Moving pending shipments to open
          - Moving shipments from dispatched to in transit
          - Moving shipments from in transit to delivered
          - Moving shipments from canceled to open
      tags:
        - Version 2/Additional Offerings/Updating
      parameters:
        - name: Accept
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateLoadStatusRequest'
            example:
              AuthenticationData:
                Username: username
                Password: password
                ClientRefNum: ''
              LoadId: 123456
              NewStatus: Dispatched
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateLoadStatusResponse'
              example:
                LoadId: 52479246
                Success: true
                Error:
                  Message: ''
          headers: {}
          x-apidog-name: UpdateLoadStatus - 200 OK
      security: []
      x-apidog-folder: Version 2/Additional Offerings/Updating
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/668040/apis/api-10126308-run
components:
  schemas:
    UpdateLoadStatusRequest:
      type: object
      properties:
        AuthenticationData:
          $ref: '#/components/schemas/Authentication%20Data'
          description: Banyan Credentials
        NewStatus:
          description: The new status for the shipment provided
          $ref: '#/components/schemas/Load%20Status%20Enum'
        LoadId:
          type: integer
          description: Banyan's primary Shipment Identifier
      required:
        - AuthenticationData
        - NewStatus
        - LoadId
      x-apidog-orders:
        - AuthenticationData
        - LoadId
        - NewStatus
      x--orders:
        - AuthenticationData
        - NewStatus
        - LoadId
      x--ignore-properties: []
      x-apidog-folder: ''
    Load Status Enum:
      type: string
      enum:
        - Pending
        - Open
        - Quoted
        - Booked
        - Dispatched
        - In Transit
        - Delivered
        - Canceled
      x-apidog:
        enumDescriptions:
          Pending: '1'
          Open: '2'
          Quoted: '3'
          Booked: '4'
          Dispatched: '5'
          In Transit: '6'
          Delivered: '7'
          Canceled: '8'
      x-apidog-folder: ''
    Authentication Data:
      type: object
      properties:
        Username:
          type: string
          description: Banyan Username
          x--mock: username
        Password:
          type: string
          description: Banyan Password
          x--mock: password
        ClientRefNum:
          type: string
          description: Client Reference Number - Used during multiple client integrations
          nullable: true
      required:
        - Username
        - Password
      x-apidog-orders:
        - Username
        - Password
        - ClientRefNum
      description: Banyan Credentials
      x--orders:
        - Username
        - Password
        - ClientRefNum
      x--ignore-properties: []
      x-apidog-folder: ''
    UpdateLoadStatusResponse:
      type: object
      properties:
        Success:
          type: boolean
          description: Success of the request
        Error:
          description: Error message supplied when request fails
          anyOf:
            - $ref: '#/components/schemas/ErrorObject'
              description: Error message supplied when request fails
            - type: 'null'
        LoadId:
          type: integer
          title: ''
          description: Banyan's primary Shipment Identifier
      required:
        - Success
        - LoadId
      x-apidog-orders:
        - LoadId
        - Success
        - Error
      x--orders:
        - Success
        - Error
        - LoadId
      x--ignore-properties: []
      x-apidog-folder: ''
    ErrorObject:
      type: object
      properties:
        Message:
          type: string
      required:
        - Message
      x-apidog-orders:
        - Message
      x--orders:
        - Message
      x--ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ws.integration.banyantechnology.com
    description: Integration Env
security: []

```
