Page cover

Event categories

Category object

[
    {
        "id": "ec_c92128dea", 
        "jurisdiction_id": "ju-123abc",
        "person_id": 7,
        "name": "Community",
        "slug": "community", 
        "style": {
            "backgroundColor": "#72A0C1",
            "color": "#FFFFFF",
            "fontSize": "12px",
            "fontWeight": 400,
            "fontStyle": "normal", 
        }, 
        "created_at": "2022-07-06T08:22:57.000Z", 
        "updated_at": "2022-07-06T08:22:57.000Z" 
    }
...
]

List event categories

GET https://api.heygov.com/{jurisdiction_id}/events/categories

Get all event categories for municipality

Path Parameters

Name
Type
Description

jurisdiction_id

String

The municipality ID

Create event category

POST https://api.heygov.com/{jurisdiction_id}/events/categories

Add new event category for the municipality

Path Parameters

Name
Type
Description

jurisdiction_id

String

The municipality ID

Request Body

Name
Type
Description

name*

String

Event category name

style

Object

Event category style

Update event category

PUT https://api.heygov.com/{jurisidction_id}/events/categories/{id}

Update event category

Path Parameters

Name
Type
Description

jurisdiction_id

String

The municipality ID

id

String

The event category ID

Delete event category

DELETE https://api.heygov.com/{jurisdiction_id}/events/categories/{id}

Delete event category & all events with that category

Path Parameters

Name
Type
Description

jurisdiction_id

String

The municipality ID

id

String

The event category ID

Last updated