Skip to main content

Add a new business location

PATCH /api/v1/businesses/:businessId/locations

Description

Add a new business location.

Request

  • Authentication:

    • Type: Bearer Token
    • Token: {{bearerToken}} (Replace with the actual bearer token)
  • URL:

    • Raw URL: /api/v1/businesses/:businessId/locations
    • Host:
    • Path: /api/v1/businesses/:businessId/locations
    • Variables:
      • businessId: (Required)

Response:

  • Status: OK (200)
/api/v1/businesses/:businessId/locations

Headers

Content-TypeValue
Content-Typeapplication/json

Body (raw)

{
"address": "<string>",
"country": {
"name": "<string>",
"code": "<string>",
"currency": "<string>"
},
"state": {
"name": "<string>",
"code": "<string>"
},
"lga": {
"name": "<string>",
"code": "<string>"
},
"latitude": "<number>",
"longitude": "<number>",
"userId": "<string>"
}

🔑 Authentication bearer

ParamvalueType
tokenbearerTokenstring

Response: 200

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PATCH \ 
--url /api/v1/businesses/:businessId/locations \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!