APIs to create and manage events.
curl -i -X DELETE \
https://apis.spotnana.com/v2/events/6926658168 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
curl -i -X GET \
'https://apis.spotnana.com/v2/events/read-by-external-id?companyId=f49d00fe-1eda-4304-ba79-a980f565281d&externalId=6926658168' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "event": { "id": "string", "name": "string", "type": "GENERIC", "description": "string", "startDateTime": { … }, "endDateTime": { … }, "location": { … }, "group": { … }, "status": "DRAFT", "companyId": { … }, "runningStatus": "UPCOMING", "paymentSources": [ … ], "numTravelers": 1, "customFieldResponses": [ … ], "externalId": "qwert123", "policyId": "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b", "parentEventId": "56789012" } }
curl -i -X POST \
https://apis.spotnana.com/v2/events/6926658168/travelers/add \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"type": "GENERIC",
"userIds": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}'
{ "addedUserIds": [ { … } ] }