Skip to content

Creating Calendar events via API — owner_id simultaneously required and forbidden (422) #1468

@IceTheDev

Description

@IceTheDev

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:

  1. owner_id can't be blank
  2. 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..

  • Reviewed the documentation found at https://developer.planning.center/docs
  • Searched for previous issues answering this question
  • Removed all private information from this issue (credentials, tokens, emails, phone numbers, etc.)
  • Reviewed my issue for completeness

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions