Skip to main content
POST
/
activities
/
import
Import multiple activities
curl --request POST \
  --url https://app.azalt.co/api/v1/activities/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "formId": "<string>",
  "activities": [
    {
      "key": "<string>",
      "siteId": "<string>",
      "year": 123,
      "periodUnit": 123,
      "input": {}
    }
  ]
}
'
{
  "activities": [
    {
      "activityId": "<string>",
      "input": {},
      "value": 123,
      "metadata": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
formId
string
required
activities
object[]
required

Response

Successful response

activities
object[]
required