Logo
ActiveCampaign Developer Relations API Documentation

Create a public schema

POST {{yourAccountUrl}}/api/3/customObjects/schemas/public

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Api-Token
string Your ActiveCampaign API Token




RESPONSES

status





Curl
curl -X POST '/api/3/customObjects/schemas/public' -H 'Api-Token: yourApiKey' -d '{"schema":{"slug":"event-tickets","appId":"cxapp-studio-app-id","labels":{"singular":"Event Ticket","plural":"Event Tickets"},"description":"Event Tickets","fields":[{"id":"name","labels":{"singular":"Name","plural":"Names"},"type":"textarea"}],"relationships":[{"id":"primary-contact","labels":{"singular":"Primary Contact","plural":"Primary Contacts"},"description":"Primary contact that owns a ticket","namespace":"contacts"}]}}'

ENDPOINTS