Add Activities
Add Activities
AddActivities stages rows on an unsealed project, one created with
Create a Project. Call it as many times as you need; the
rows accumulate and only collapse when you Submit. The response
returns staged, the running total of staged rows on the project.
Endpoint
POST https://api.dangofish.com/api.v1.Service/AddActivitiesAuthorization: Bearer dk_org_...
Content-Type: application/jsonRequest
Each activity mirrors the 10-column agent import template. Only designation is
required; every field is a string.
| Field | Required | Notes |
|---|---|---|
designation | yes | Product or service label |
supplier | no | |
unitPrice | no | |
currency | no | e.g. EUR |
quantity | no | |
unit | no | |
purchaseDate | no | |
weight | no | |
notes | no | |
category | no |
{
"projectId": "aB3xK9",
"activities": [
{
"designation": "Recycled A4 paper, 80g",
"supplier": "Acme Paper Co",
"unitPrice": "4.20",
"currency": "EUR",
"quantity": "120",
"unit": "ream",
"purchaseDate": "2026-05-14",
"weight": "2.5",
"notes": "office supply",
"category": "paper"
}
]
}Response
{ "staged": 1 }Examples
curl -X POST https://api.dangofish.com/api.v1.Service/AddActivities \
-H "Authorization: Bearer $DANGO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"projectId": "aB3xK9",
"activities": [
{"designation": "Recycled A4 paper, 80g", "supplier": "Acme Paper Co", "unitPrice": "4.20", "currency": "EUR", "quantity": "120", "unit": "ream"}
]
}'Errors
Unauthenticated: missing or invalid API key.PermissionDenied: the project belongs to another organization.FailedPrecondition: the project is already sealed (submitted). Staging is only allowed beforeSubmit.InvalidArgument: a row is missingdesignation, or the payload is oversized.