Related Product: Calendar
Describe the question:
I'm trying to create Calendar events via the API from an external system (a venue booking platform). When I POST to /calendar/v2/events, I get two validation errors:
owner_id can't be blank
You must select a tag from the required tag group(s).
I can resolve the tag error by including tags as a relationship in the POST body. However, I cannot resolve the owner error. No matter what I try, PCO rejects any attempt to set the owner.
Endpoint: POST https://api.planningcenteronline.com/calendar/v2/events
What have you tried that worked?
- Including tags as a relationship in the POST body — this resolves the tag validation error
- Auth via Personal Access Token (PAT)
- Auth via OAuth 2.0 (authorizing as a site administrator with Event Administrator permissions)
What have you tried that didn't work?
- Sending
owner_id as a plain integer attribute → 422: owner_id cannot be assigned
- Sending
owner as a JSON:API relationship with { type: "Person", id: "..." } → 422: owner_id cannot be assigned
- Omitting owner entirely and relying on the API token to auto-set it →
422: owner_id can't be blank
- Tried with multiple person IDs including my own and the org's site administrator
- Tried with both PAT and OAuth tokens — same result either way
- The authenticated user is confirmed as
site_administrator: true and event_permissions_type: "Event Administrator"
Additional context:
It appears owner_id is simultaneously required (validation error when blank) and forbidden (error when assigned). Is there a specific way integrations are expected to set the event owner? Is there a service account pattern or org-level setting that allows API-created events to have an owner assigned automatically? Other integrations (like Registrations feed) appear to set a default owner...is there an equivalent mechanism for custom API integrations?
I have..
Related Product: Calendar
Describe the question:
I'm trying to create Calendar events via the API from an external system (a venue booking platform). When I POST to
/calendar/v2/events, I get two validation errors:owner_id can't be blankYou must select a tag from the required tag group(s).I can resolve the tag error by including tags as a relationship in the POST body. However, I cannot resolve the owner error. No matter what I try, PCO rejects any attempt to set the owner.
Endpoint:
POST https://api.planningcenteronline.com/calendar/v2/eventsWhat have you tried that worked?
What have you tried that didn't work?
owner_idas a plain integer attribute →422: owner_id cannot be assignedowneras a JSON:API relationship with{ type: "Person", id: "..." }→422: owner_id cannot be assigned422: owner_id can't be blanksite_administrator: trueandevent_permissions_type: "Event Administrator"Additional context:
It appears
owner_idis simultaneously required (validation error when blank) and forbidden (error when assigned). Is there a specific way integrations are expected to set the event owner? Is there a service account pattern or org-level setting that allows API-created events to have an owner assigned automatically? Other integrations (like Registrations feed) appear to set a default owner...is there an equivalent mechanism for custom API integrations?I have..