Bc events create and edit event

From breatheco-de/apiv2 · View interactive version

Bc events create and edit event is an AI agent skill from the GitHub repository breatheco-de/apiv2. Use when staff need to create or set up academy events (event type, tags, optional workshop asset, host, and meeting setup); do NOT use for during-event operations (bc-events-during-event), post-event wrap-up (bc-events-post-event), bulk attendee import (bc-events-bulk-import-checkins), or learner j

How to use this skill

Skill file

Skill: Create and Edit Academy Events

When to Use

Use this skill when the user needs to create or edit an event through the academy API workflow, including selecting/creating event type, selecting tags, linking workshop assets, assigning hosts, and setting meeting provider behavior. Do NOT use this skill for bulk RSVP/attendance import (use CODE0), learner join/check-in, or public event browsing without editing.

Concepts

Workflow

  1. Set request context first. Send Authorization and Academy: <academy_id> headers on all /academy/ endpoints. Send Accept-Language (for example en or es) if translated errors are needed.
  1. Resolve event type before creating or publishing an event.
  1. Resolve allowed event tags.
  1. Resolve optional workshop asset.
  1. Resolve optional venue for in-person events.

5b. Optional multi-day series: pick a shared string key (e.g. python-intensive-apr) and set the same event_group on every session event create/update.

  1. Create the event.

Import attendees (bulk)

After the event exists, use CODE0 to import RSVPs and mark attendance via POST /v1/events/academy/event/<event_id>/checkin/bulk. For real-time Luma registration/check-in, use CODE2 instead.

  1. Add or update host after creation.
  1. Edit event details.
  1. Hand off lifecycle operations after setup.

Endpoints

| Action | Method | Path | Headers | Body | Response |

|---|---|---|---|---|---|

| List event types | GET | /v1/events/academy/eventype | Authorization, Academy, optional Accept-Language | Optional query filters | Non-paginated list of event types |

| Create event type | POST | /v1/events/academy/eventype | Authorization, Academy, optional Accept-Language | Event type payload | 201 event type object |

| Update event type | PUT | /v1/events/academy/eventype/<event_type_slug> | Authorization, Academy, optional Accept-Language | Event type update payload | 200 event type object |

| List selectable tags | GET | /v1/marketing/academy/tag?type=DISCOVERY | Authorization, Academy, optional Accept-Language | Optional pagination/query filters | Paginated tags (results) |

| Search workshop assets | GET | /v1/registry/academy/asset | Authorization, Academy, optional Accept-Language | Query examples below | Paginated assets (results) |

| List venues | GET | /v1/events/academy/venues | Authorization, Academy, optional Accept-Language | — | Non-paginated venue list |

| Create event | POST | /v1/events/academy/event | Authorization, Academy, optional Accept-Language | Event payload | 201 event object |

| Update one event | PUT | /v1/events/academy/event/<event_id> | Authorization, Academy, optional Accept-Language | Event update payload | 200 event object |

| Bulk update events | PUT | /v1/events/academy/event | Authorization, Academy, optional Accept-Language | List of event updates | 200 list of event objects |

| Assign host + invite | POST | /v1/events/academy/event/<event_id>/host | Authorization, Academy, optional Accept-Language | Host payload | 201 with user, invite, event_id |

| Update host profile | PUT | /v1/events/academy/event/<event_id>/host/<user_id> | Authorization, Academy, optional Accept-Language | Partial profile payload | 200 updated profile |

| Delete draft event | DELETE | /v1/events/academy/event/<event_id> | Authorization, Academy, optional Accept-Language | — | 204 |

List event types response example (GET /v1/events/academy/eventype)

[
  {
    "id": 12,
    "slug": "coding-workshop",
    "name": "Coding Workshop",
    "technologies": "python,flask",
    "description": "Live coding session",
    "icon_url": "https://cdn.example.com/icons/workshop.png",
    "lang": "en",
    "academy": {
      "id": 1,
      "slug": "miami",
      "name": "4Geeks Miami",
      "city": {"name": "Miami"}
    }
  }
]

Create event type request (POST /v1/events/academy/eventype)

{
  "name": "AI Workshop",
  "slug": "ai-workshop",
  "description": "Hands-on AI workshop",
  "icon_url": "https://cdn.example.com/icons/ai-workshop.png",
  "lang": "en",
  "allow_shared_creation": false,
  "technologies": "python,llm"
}

Update event type request (PUT /v1/events/academy/eventype/ai-workshop)

{
  "name": "AI Workshop Updated",
  "description": "Updated workshop description",
  "icon_url": "https://cdn.example.com/icons/ai-workshop-v2.png",
  "lang": "en",
  "allow_shared_creation": false
}

Tag lookup response example (GET /v1/marketing/academy/tag?type=DISCOVERY)

{
  "count": 2,
  "next": null,
  "previous": null,
  "results": [
    {"id": 41, "slug": "intro-webinar", "tag_type": "DISCOVERY", "subscribers": 120},
    {"id": 42, "slug": "python-beginner", "tag_type": "DISCOVERY", "subscribers": 89}
  ]
}

Asset search request examples (GET /v1/registry/academy/asset)

Asset search response example

{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": 55,
      "slug": "react-todo",
      "title": "React Todo Project",
      "asset_type": "PROJECT",
      "url": "https://github.com/acme/react-todo",
      "readme_url": "https://github.com/acme/react-todo/blob/main/README.md"
    }
  ]
}

Venue list response example (GET /v1/events/academy/venues)

[
  {
    "id": 7,
    "title": "Main Campus Auditorium",
    "street_address": "123 NE 1st St",
    "city": "Miami",
    "zip_code": "33132",
    "state": "FL",
    "updated_at": "2026-03-31T14:00:00Z"
  }
]

Create event request (POST /v1/events/academy/event)

{
  "title": "Intro to Python Live Workshop",
  "banner": "https://cdn.example.com/banners/python-workshop.png",
  "capacity": 80,
  "starting_at": "2026-04-21T22:00:00Z",
  "ending_at": "2026-04-22T00:00:00Z",
  "status": "DRAFT",
  "description": "Beginner-friendly workshop",
  "excerpt": "Start coding with Python",
  "url": "https://4geeks.com/workshops/intro-python",
  "tags": "intro-webinar,python-beginner",
  "lang": "en",
  "event_type": 12,
  "online_event": true,
  "live_stream_url": "",
  "create_meet": true,
  "meeting_provider": "daily",
  "is_public": true,
  "free_for_all": true,
  "free_for_bootcamps": true,
  "asset_slug": "react-todo",
  "event_group": "python-intensive-apr"
}

Create event response (201)

{
  "id": 101,
  "academy": 1,
  "title": "Intro to Python Live Workshop",
  "slug": "intro-to-python-live-workshop",
  "banner": "https://cdn.example.com/banners/python-workshop.png",
  "capacity": 80,
  "starting_at": "2026-04-21T22:00:00Z",
  "ending_at": "2026-04-22T00:00:00Z",
  "status": "DRAFT",
  "tags": "intro-webinar,python-beginner",
  "lang": "en",
  "event_type": 12,
  "online_event": true,
  "live_stream_url": "https://your-room.daily.co/event-101",
  "is_public": true,
  "free_for_all": true,
  "free_for_bootcamps": true,
  "asset_slug": "react-todo",
  "event_group": "python-intensive-apr",
  "eventbrite_sync_status": "PENDING",
  "created_at": "2026-03-31T14:05:00Z",
  "updated_at": "2026-03-31T14:05:00Z"
}

Update event request (PUT /v1/events/academy/event/101)

{
  "id": 101,
  "title": "Intro to Python Workshop (Updated)",
  "banner": "https://cdn.example.com/banners/python-workshop-v2.png",
  "capacity": 120,
  "starting_at": "2026-04-21T22:00:00Z",
  "ending_at": "2026-04-22T00:30:00Z",
  "tags": "intro-webinar,python-beginner",
  "status": "ACTIVE",
  "event_type": 12,
  "online_event": true,
  "free_for_all": false,
  "free_for_bootcamps": true
}

slug is read-only on PUT. Do not include it in update payloads.

Bulk update request (PUT /v1/events/academy/event)

[
  {
    "id": 101,
    "title": "Python Workshop A",
    "starting_at": "2026-04-21T22:00:00Z",
    "ending_at": "2026-04-21T23:30:00Z"
  },
  {
    "id": 102,
    "status": "DRAFT"
  }
]

Assign host request (POST /v1/events/academy/event/101/host)

{
  "host": "Alex Johnson",
  "host_email": "alex.johnson@example.com",
  "avatar_url": "https://cdn.example.com/hosts/alex.png",
  "bio": "Senior instructor and open-source contributor",
  "github_username": "alexj",
  "linkedin_url": "https://www.linkedin.com/in/alexj/"
}

Assign host response (201)

{
  "user": {
    "id": 9001,
    "first_name": "Alex",
    "last_name": "Johnson",
    "email": "alex.johnson@example.com",
    "is_active": false
  },
  "invite": {
    "id": 300,
    "status": "PENDING",
    "event_slug": "intro-to-python-live-workshop",
    "email": "alex.johnson@example.com"
  },
  "event_id": 101,
  "message": "Host user created and invitation sent"
}

Update host profile request (PUT /v1/events/academy/event/101/host/9001)

{
  "bio": "Lead instructor for Python track",
  "portfolio_url": "https://alex.dev",
  "twitter_username": "alexcodes"
}

Edge Cases

Checklist

  1. Confirm headers are set: Authorization, Academy, and optional Accept-Language.
  2. Resolve event type (GET, then optional POST/PUT) and save valid event_type id.
  3. Resolve tags via GET /v1/marketing/academy/tag?type=DISCOVERY and build valid tags CSV.
  4. If workshop asset is needed, search and validate via GET /v1/registry/academy/asset and only use PROJECT/EXERCISE.
  5. If in-person event, pick venue from GET /v1/events/academy/venues.
  6. Create event with POST /v1/events/academy/event including required fields and access flags (is_public, free_for_all, free_for_bootcamps).
  7. For online meeting automation, use create_meet=true and optional meeting_provider (daily/livekit), or provide live_stream_url for custom provider.
  8. Assign/update host with host endpoints after create and after any host ownership change.
  9. Use normal PUT for event edits; hand off to during-event or post-event skills for lifecycle operations; delete only when event is draft.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.