Skip to main content

Update a location's static emergency address

PATCH 

/v2/external_connections/:id/locations/:location_id

Update a location's static emergency address

Request

Path Parameters

    id uuidrequired

    The ID of the external connection

    location_id uuidrequired

    The ID of the location to update

Body

required

    static_emergency_address_id uuidrequired

    A new static emergency address ID to update the location with

Responses

200: Location successfully updated with no associated orders to process

Schema

    data

    object

    location_id uuid
    static_emergency_address_id uuid
    accepted_address_suggestions boolean

202: Location update accepted; associated orders being processed

Schema

    data

    object

    location_id uuid
    static_emergency_address_id uuid
    accepted_address_suggestions boolean

404: Location or external connection not found

Schema

    errors

    object[]

  • Array [

  • code string
    detail string

    meta

    object

    url uri
    title string

    source

    object

    pointer string
  • ]

422: Unprocessable Entity - Location already has an accepted emergency address

Schema

    errors

    object[]

  • Array [

  • code string
    detail string

    meta

    object

    url uri
    title string

    source

    object

    pointer string
  • ]

Loading...