Copy Business Locations
PATCH /api/v1/businesses/{businessId}/copy/locations
Description
Copy business locations.
Path Parameters
| Name | Type | Description |
|---|---|---|
businessId | string | The ID of the business (path) |
Request Body
- Content Type:
application/json
{
"userId": "string",
"actionBy": "string",
"businessId": "string",
"locations": [
{
"branchName": "string",
"stateCode": "string",
"cityName": "string",
"latitude": 0,
"longitude": 0,
"extraLocationPrice": 0,
"address": "string"
}
]
}
Response Code: 200 - OK
Description
Business locations copied successfully.
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | Indicates if the operation was successful |
statusCode | integer | Status code |
message | string | Response message |
data | object | Data related to the business locations |
errors | array | List of error messages, if any |
Example
{
"status": true,
"statusCode": 0,
"message": "Business locations copied successfully",
"data": {},
"errors": []
}
Headers
| Content-Type | Value |
|---|---|
| apiKey | {{apiKey}} |
Body
{
"userId": "usr123",
"actionBy": "admin",
"businessId": "biz456",
"locations": [
{
"branchName": "Main Branch",
"stateCode": "CA",
"cityName": "San Francisco",
"latitude": 37.7749,
"longitude": -122.4194,
"extraLocationPrice": 100.00,
"address": "123 Market Street"
}
]
}
🔑 Authentication bearer
| Param | Value | Type |
|---|---|---|
| token | {{accessCode}} | string |
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /api/v1/businesses/{businessId}/copy/locations \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!