Import Activity - API v2.4 - CoastSnap - SPOTTERON

Import activity

Endpoint: https://www.spotteron.com/api/v2.4/activities/import
Authentication: Bearer token
Method: POST
Content-Type: multipart/form-data
Request body:
Name Required Type Info
data[attributes][type_id] true TEXT The activity type id:
1 for event
data[attributes][topic_id] true TEXT The topic id:
37 for CoastSnap
data[attributes][category] true TEXT Categories for event activities:
  • general
  • event
  • workshop
  • field_trip
  • area_of_interest
data[attributes][title][ca-ES]
data[attributes][title][es-ES]
data[attributes][title][fr-FR]
data[attributes][title][gl-ES]
data[attributes][title][nl-NL]
data[attributes][title][pt-PT]
data[attributes][title][en-AU]
true TEXT The title of the activity.
en-AU is required
data[attributes][description][ca-ES]
data[attributes][description][es-ES]
data[attributes][description][fr-FR]
data[attributes][description][gl-ES]
data[attributes][description][nl-NL]
data[attributes][description][pt-PT]
data[attributes][description][en-AU]
TEXT The description of the activity.
data[attributes][image] FILE Activity image. Content-Type: image/jpeg
data[attributes][location][ca-ES]
data[attributes][location][es-ES]
data[attributes][location][fr-FR]
data[attributes][location][gl-ES]
data[attributes][location][nl-NL]
data[attributes][location][pt-PT]
data[attributes][location][en-AU]
TEXT The location name of the activity
data[attributes][geometry_type] TEXT None, Point, Circle or GeoJSON
data[attributes][geometry] TEXT The GeoJSON if geometry type is GeoJSON
data[attributes][latitude] TEXT The latitude if geometry type is Point or Circle
data[attributes][longitude] TEXT The longitude if geometry type is Point or Circle
data[attributes][radius] TEXT The radius if geometry type is Circle
data[attributes][start] TEXT Start date/time of the activity.
Format "YYYY-MM-DD hh:mm"
data[attributes][end] TEXT End date/time of the activity.
Format "YYYY-MM-DD hh:mm"
data[attributes][timezone] TEXT The timezone identifier, e.g. Europe/Vienna
data[attributes][source_id] TEXT An external unique identifier.
If endpoint is called with the same source id twice, the existing dataset with the same source id will be overwritten.