cURL
curl --request POST \ --url https://api.pocketflows.com/project_defined_events \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "event": "<string>", "display_text": "<string>" } '
{ "id": "<string>", "event": "<string>", "display_text": "<string>" }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The event name. Likely takes the form customer.created or similar
customer.created
The human-readable text for this event. Should grammatically follow "When..." e.g. "a customer is created"
The created ProjectDefinedEvent object
ProjectDefinedEvent
The ID of the project defined event