Update Event - Implan-Group/api GitHub Wiki

Update Event


PUT /api/v1/impact/project/{projectId}/event/{eventId}

This endpoint modifies an existing Event.

Parameter Spec Type Details
projectId route guid The Project's identifier.
eventId route guid The Event's identifier.
body body str An Event Object.

Note

You can change any detail about an Event, even including the entire Event Type.


🧾Example

🏛️ Original Event

{
    "output": 147000.13,
    "employment": 20.25,
    "employeeCompensation": 50000.23,
    "proprietorIncome": 3400.0,
    "industryCode": 0,
    "marginType": "ProducerPrice",
    "percentage": null,
    "datasetId": null,
    "id": "a13f41d7-6d6f-4a99-94e7-aa38dc6d224b",
    "projectId": "03be9dc4-bad7-4d9c-92f9-184c4388ad56",
    "impactEventType": "IndustryOutput",
    "title": "Example Industry Output Event",
    "tags": [
        "test"
    ]
}

📤 Request

PUT /api/v1/impact/project/03be9dc4-bad7-4d9c-92f9-184c4388ad56/event/a13f41d7-6d6f-4a99-94e7-aa38dc6d224b

{
    "ImpactEventType": "HouseholdIncome",
    "Title" : "Example Household Income Event",
    "HouseholdIncomeCode": 10001,
    "Value" : 14700.5,
    "Tags": ["changed"]
}

📥 Response

{
    "value": 14700.5,
    "householdIncomeCode": 10001,
    "id": "a13f41d7-6d6f-4a99-94e7-aa38dc6d224b",
    "projectId": "03be9dc4-bad7-4d9c-92f9-184c4388ad56",
    "impactEventType": "HouseholdIncome",
    "title": "Example Household Income Event",
    "tags": [
        "test",
        "changed"
    ]
}
⚠️ **GitHub.com Fallback** ⚠️