Using API v1? See what changes in v2, or the v1 docs
RESOURCE_CONFLICT
The resource was modified or already exists.
HTTP status: 409. Retrying the same request returns the same error.
What to do
Fetch the latest version, reapply your change, and send it with the new version in the If-Match header.
Hint returned with the error: Fetch the resource again and retry with its current version.
Why it happens
- Someone else updated the event after you read it (
If-Matchdid not match) - An attempt to create a resource that already exists
Endpoints that return it
- Retry an account import
POST /v2/accounts/imports/{importId}/retry - Create a category
POST /v2/calendars/{calendarRef}/categories - Update an event
PATCH /v2/events/{eventId} - Delete an event
DELETE /v2/events/{eventId} - Import an event
POST /v2/events/import - Replay a webhook delivery
POST /v2/webhooks/deliveries/{deliveryId}/replay - Cancel a metadata import
DELETE /v2/metadata/imports/{importId} - Rotate an API key
POST /v2/keys/{keyId}/rotate