cURL
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 'dosespotClinicId=<string>' \ --form 'dosespotClinicKey=<string>' \ --form 'externalId=<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>", "dosespotClinicId": "<string>", "dosespotClinicKey": "<string>", "externalId": "<string>", "description": "<string>", "phoneNumber": "<string>", "photoUrl": "<string>", "reviewLink": "<string>", "updatedDate": "2023-11-07T05:31:56Z", "latitude": 123, "longitude": 123, "isArchived": false }
The tenant you are making this request on behalf of
Your api key
Successful Response