Update Single Address Book
This object is used to update or modify the desired address which is stored in the database on the basis of administrator requirements or as per shipping requirements.
URL Config
Endpoint: https://api.dps.io/api
APIVersion: v1
route: addressbook
path: {{YOUR_SHIPPER_HASH}}/{{your_AddressBookId}}
Method
PUT
URL
https://api.dps.io/api/v1/addressbook/05K9****************************JG6a/199
Request Headers
{
"Content-Type": "application/json",
"x-api-key": "<YOUR_API_KEY>",
"ShipperHash": "<YOUR_SHIPPER_HASH>"
}
```json title="Request Body"
{
"ShipperHash": "05K9****************************JG6a",
"Name": "My First address Book Updated name",
"Description": "This is a Test Address book description",
"Tags": "Test_address_book, address_book_test"
}
Curl request
curl --location --request PUT 'https://api.dps.io/api/v1/addressbook/05K9****************************JG6a/199' \
--header 'x-api-key: xxxxxxdfjbdjdfjdhfxxxxxxx' \
--header 'ShipperHash: 05K9****************************JG6a' \
--header 'Content-Type: application/json' \
--data-raw '{
"ShipperHash": "05K9****************************JG6a",
"Name": "My First address Book Updated name",
"Description": "This is a Test Address book description",
"Tags": "Test_address_book, address_book_test"
}'
Response
"Your address book has been updated successfully."