Skip to content
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/AddActivities
Authorization: Bearer dk_org_...
Content-Type: application/json

Request

Each activity mirrors the 10-column agent import template. Only designation is required; every field is a string.

FieldRequiredNotes
designationyesProduct or service label
supplierno
unitPriceno
currencynoe.g. EUR
quantityno
unitno
purchaseDateno
weightno
notesno
categoryno
{
  "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 before Submit.
  • InvalidArgument: a row is missing designation, or the payload is oversized.