📘
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 a Class

PreviousCreate or Update LocationNextDelete Class

Last updated 2 months ago

Create a new class

post

Create a new class with specified details

Header parameters
X-API-KEYstringRequired

Your API key

X-SECRET-KEYstringRequired

Your Secret key

Body
app_idstringRequired
idstringRequired
class_namestringOptional
class_categorystringOptional
staff_namestringOptional
program_namestringOptional
datestring · dateRequired
start_timestring · timeRequired
end_timestring · timeOptional
Responses
200
Class created successfully
application/json
400
Invalid request
post
POST /v2/ExternalApi/newClass HTTP/1.1
Host: api.gleantap.com
X-API-KEY: text
X-SECRET-KEY: text
Content-Type: application/json
Accept: */*
Content-Length: 181

{
  "app_id": "text",
  "id": "text",
  "class_name": "text",
  "class_category": "text",
  "staff_name": "text",
  "program_name": "text",
  "date": "2025-05-21",
  "start_time": "18:11:04",
  "end_time": "18:11:04"
}
{
  "result": "success"
}