Update Address
PUT {{baseUrl}}/customers/addresses/:addressId
Description
Update the details of a specific address.
Request:
- Headers:
Content-Type: application/jsonAccept: /
- URL:
- Raw URL:
{{baseUrl}}/addresses/update/{addressId} - Host:
{{baseUrl}} - Path:
/addresses/update/{addressId}
- Raw URL:
- Body:
- Plain Text:
{
"address": "<string>",
"city": "<string>",
"state": "<string>"
}
- Plain Text:
Response:
- Code: 200
- Headers:
Content-Type: /
HEADERS:
Content-Type: application/jsonAccept: /
PATH VARIABLES:
addressId:<string>(Required)
Sample Request:
curl --location -g --request PUT '{{baseUrl}}/customers/addresses/:addressId' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--data '{
"address": "<string>",
"city": "<string>",
"state": "<string>"
}'
Sample Response
{
"message": "<string>",
"data": {
"id": "<long>",
"uuid": "<string>",
"createdAt": "<dateTime>",
"updatedAt": "<dateTime>",
"state": "<string>",
"city": "<string>",
"address": "<string>",
"customerId": "<string>",
"tenantId": "<string>"
},
"meta": {
"currentPage": "<long>",
"from": "<long>",
"to": "<long>",
"perPage": "<long>",
"total": "<long>",
"lastPage": "<long>"
}
}
This documentation provides details about updating the details of a specific address. It includes information about the request method, headers, URL, request payload, and response structure. Additionally, sample requests and responses are provided for better understanding.
LANGUAGE
CURL REQUEST
curl --request PUT \
--url /customers/addresses/:addressId \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!