Skip to main content
POST
/
admin
/
locations
/
update-or-create
Update Or Create Location
curl --request POST \
  --url https://api.decodahealth.com/admin/locations/update-or-create \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --header 'TENANT: <tenant>' \
  --form 'name=<string>' \
  --form isVirtual=true \
  --form 'timezone=<string>' \
  --form 'photo=<string>' \
  --form 'id=<string>' \
  --form 'description=<string>' \
  --form 'addressLineOne=<string>' \
  --form 'addressLineTwo=<string>' \
  --form 'city=<string>' \
  --form 'state=<string>' \
  --form 'zipCode=<string>' \
  --form 'country=<string>' \
  --form 'phoneNumber=<string>' \
  --form 'reviewLink=<string>' \
  --form latitude=123 \
  --form longitude=123 \
  --form 'spakinectLocationId=<string>' \
  --form photo.0='@example-file'
{
  "id": "<string>",
  "isVirtual": true,
  "name": "<string>",
  "timezone": "<string>",
  "addressLineOne": "<string>",
  "addressLineTwo": "<string>",
  "city": "<string>",
  "state": "<string>",
  "zipCode": "<string>",
  "country": "<string>",
  "createdDate": "2023-11-07T05:31:56Z",
  "spakinectLocationId": "<string>",
  "description": "<string>",
  "phoneNumber": "<string>",
  "photoUrl": "<string>",
  "reviewLink": "<string>",
  "updatedDate": "2023-11-07T05:31:56Z",
  "latitude": 123,
  "longitude": 123,
  "taxes": []
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

multipart/form-data
name
string
required
isVirtual
boolean
required
timezone
string
required
photo
file | null
id
string | null
description
string | null
addressLineOne
string | null
addressLineTwo
string | null
city
string | null
state
string | null
zipCode
string | null
country
string | null
phoneNumber
string | null
latitude
number | null
longitude
number | null
spakinectLocationId
string | null

Response

Successful Response

id
string
required
isVirtual
boolean
required
name
string
required
timezone
string
required
addressLineOne
string | null
addressLineTwo
string | null
city
string | null
state
string | null
zipCode
string | null
country
string | null
createdDate
string<date-time> | null
spakinectLocationId
string | null
description
string | null
phoneNumber
string | null
photoUrl
string | null
updatedDate
string<date-time> | null
latitude
number | null
longitude
number | null
taxes
TaxSummary · object[]