---
title: "Update Associated Location"
method: PUT
path: "/v4/shippingAccounts/rm/{shippingAccountId}/shippingLocations/{shippingLocationId}"
tags: ["Shipping Accounts"]
---

# Update Associated Location

`PUT /v4/shippingAccounts/rm/{shippingAccountId}/shippingLocations/{shippingLocationId}`

## Request

- Base URL: `https://api.intersoftsapient.net`
- URL: `https://api.intersoftsapient.net/v4/shippingAccounts/rm/{shippingAccountId}/shippingLocations/{shippingLocationId}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://authentication.intersoftsapient.net/connect/token`

Update the details of an existing shipping location associated with a specific Royal Mail shipping account with carrier specific details, such as posting location, OBA access code, and receiving hub code.

## Path parameters

- `shippingAccountId` string, required
- `shippingLocationId` string, required

## Request body

- RoyalMailUpdateShippingAccountLocation: Royal Mail Update Shipping Account Location
  - `PostingLocationCode` string, required: A unique number assigned to this location by Royal Mail. This code is essential for identifying the particular location from which shipments are dispatched. It facilitates the processing and tracking of mail and packages by providing a clear reference to the origin of the shipment within the Royal Mail network.
  - `ObaAccessCode` string, nullable: The OBA Access Code (Online Business Account Access Code) is a password associated with the Royal Mail shipping account that grants access to the Online Business Account (OBA) services. This code is crucial for ensuring that the account is secure and allows for the management of shipping tasks online. <br /> <br />***Note:** A Royal Mail shipping account cannot be activated or used for shipping unless the OBA Access Code has been provided.*
  - `ReceivingHubCode` string, required: A code that refers to the Receiving Hub or Regional Distribution Center (RDC) used for this shipping location. This code must correspond to an existing Receiving Hub recognised by Royal Mail. <br /> <br />***Note:** If the Receiving Hub code is not provided during the account creation process, Royal Mail will automatically match it to the Receiving Hub that corresponds to the postcode of the location's address. For more information, refer to the Royal Mail Receiving Hubs for a list of possible locations.*

## Response `200`

Updates the shipping location

## Other responses

- `400`: Invalid request response.
- `401`: Unauthorized
- `403`: Forbidden
- `404`: The shipping location was not found.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/intersoftsapient/apis/royal-mail.md) - [All operations](https://skmtc.dev/intersoftsapient/apis/royal-mail/llms.txt) - [OpenAPI document](https://skmtc.dev/intersoftsapient/apis/royal-mail/revisions/acb747a1c3b6?raw)
