Company

Update details of an existing location

Changed on
post/public/company/v1/update-location

Request

Request body

namestring required
phoneNumberstring required
locationIdstring uuid required

Example request

{
  "address": {
    "houseNumber": 102,
    "houseNumberAddition": "B",
    "zipCode": "5652AA",
    "countryCode": "US"
  }
}

Response

Successfully updated the location

namestring required
phoneNumberstring required
locationIdstring uuid required

Example response

{
  "address": {
    "houseNumber": 102,
    "houseNumberAddition": "B",
    "zipCode": "5652AA",
    "countryCode": "US"
  }
}

Changes

    • breaking

      added subschema #2 to the request body allOf list

    • breaking

      the response's body type changed from no type to string for status

    • info

      added subschema #2 to the response body allOf list for the response status

    • breaking

      the response's body type changed from string to no type for status

    • warning

      removed subschema #2 from the request body allOf list

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      response schema application/json enum value removed ADDRESS_DOES_NOT_EXIST

    • info

      response schema application/json enum value removed DUPLICATE_LOCATION_NAME

    • info

      response schema application/json enum value removed INVALID_DUTCH_ZIP_CODE

    • info

      response schema application/json enum value removed PHONE_NUMBER_CANNOT_BE_PARSED

    • info

      response schema application/json enum value removed PHONE_NUMBER_CANNOT_EXIST

    • info

      response schema application/json enum value removed PHONE_NUMBER_DOES_NOT_START_WITH_COUNTRY_CODE

    • info

      response schema application/json enum value removed PHONE_NUMBER_KIND_NOT_SUPPORTED