Create Event - Implan-Group/api GitHub Wiki

Create Event


POST /api/v1/impact/project/{projectId}/event

This endpoint adds a new Event to an existing Project. The response will be the full Events's json.

Parameter Spec Type Details
projectId route guid The Projects's identifier.
body body json An Event Object.

Warning

Do not specify an id in the Event's json, it will be automatically generated and returned.


🧾Example

📤 Request

POST /api/v1/impact/project/03be9dc4-bad7-4d9c-92f9-184c4388ad56/event

{
    "ImpactEventType": "IndustryOutput",
    "Title" : "Example Industry Output Event",
    "Output" : 147000.13,
    "Employment" : 20.25,
    "EmployeeCompensation" : 50000.23,
    "ProprietorIncome" : 3400.00,
    "Tags": ["test"]
}

📥 Response

{
    "output": 147000.13,
    "employment": 20.25,
    "employeeCompensation": 50000.23,
    "proprietorIncome": 3400.0,
    "industryCode": 0,
    "marginType": "ProducerPrice",
    "percentage": null,
    "datasetId": null,
    "id": "a13f41d7-6d6f-4a99-cafe-aa38dc6d224b",
    "projectId": "03be9dc4-bad7-4d9c-cafe-184c4388ad56",
    "impactEventType": "IndustryOutput",
    "title": "Example Industry Output Event",
    "tags": [
        "test"
    ]
}
⚠️ **GitHub.com Fallback** ⚠️