Update location
PUT/v1/sellers/:sellerId/locations/:locationId
Replaces an existing address with the provided payload (full replacement semantics). Omitting an optional field clears its stored value.
This operation is idempotent — calling it multiple times with the same payload produces the same result.
Constraint: The locationType of an existing location cannot be changed after creation.
Supplying a different locationType returns 422.
If isDefault: true is set, any previously default address of the same type is
automatically demoted to non-default.
Request
Responses
- 204
- 400
- 401
- 403
- 404
- 422
- 500
Location updated successfully. No response body.
Request body failed validation.
Bearer token is absent or expired.
The authenticated application does not have permission to update this location.
No location exists for the given locationId under this Seller.
Attempt to change the immutable locationType field.
Internal server error.