📘
Gleantap API
  • Introduction
  • Fetch Data
    • Attribute List
    • Attribute Event List
    • Locations
    • Class Schedule
    • Customers
    • Events for a Customer
    • Opted In Customers
    • Campaigns
    • Opted Out Customers
    • Workrooms
    • Forms
    • Form Submissions
  • Update Data
    • Create or Update Location
    • Create a Class
    • Delete Class
    • Create or Update Contact
    • SMS Opt-in a Contact
    • Add Memberships for Contact
    • Create an Event
    • Delete Contact
    • Merge Contacts
    • Send SMS Notification
    • Send Email Notifications
Powered by GitBook
On this page
  1. Update Data

Create or Update Location

PreviousForm SubmissionsNextCreate a Class

Last updated 2 months ago

Create or update location

post

Create a new location or update existing location details

Header parameters
X-API-KEYstringRequired

Your API key

X-SECRET-KEYstringRequired

Your Secret key

Body
app_idstringRequired
idstringRequired
namestringRequired
addressstringOptional
phonestringOptional
emailstringOptional
timezonestringOptional
hoursstringOptional
Responses
200
Location created/updated successfully
application/json
400
Invalid request
post
POST /v2/ExternalApi/newLocation HTTP/1.1
Host: api.gleantap.com
X-API-KEY: text
X-SECRET-KEY: text
Content-Type: application/json
Accept: */*
Content-Length: 123

{
  "app_id": "text",
  "id": "text",
  "name": "text",
  "address": "text",
  "phone": "text",
  "email": "text",
  "timezone": "text",
  "hours": "text"
}
{
  "result": "success"
}