Move events to a different type
Use dryRun to preview the change. Applying a move requires a user with admin scope. Requires the schema:write scope.
bearerAuthAuthorizationBearer <token>A workspace API key.
application/json- body
from*stringThe event type the events have now (API name), e.g. "meeting".
1 <= length <= 100to*stringThe event type they move to (API name), e.g. "conversation".
1 <= length <= 100events?array<>Only these events, all of type from (at most 1000). Without it, every live event of from moves.
1 <= items <= 1000fields?Source field name to target field name, for fields named differently, e.g. { "agenda": "topic" }. Other fields map by name; title and summary always map to the target's own.
{}drop?array<>Source fields whose values you agree to delete because the target has no field for them. Without it, a move that would lose values is refused with the list.
items <= 200[]defaults?Target field values for moved events that have no value for that field, written as if logged with the event, e.g. { "medium": "meeting" } when moving meetings to conversation.
{}dryRun?booleanCheck the move and report what it would do, changing nothing.
falseSuccessful response.
application/json- response
id*|nulldryRun*booleanfrom*stringto*stringeventIds*array<>fields*array<>dropped*array<>defaults*array<>curl -X POST 'https://retainer.tamloot.cc/v1/events/move' \ -H 'Authorization: Bearer YOUR_WORKSPACE_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "from": "meeting", "to": "conversation", "defaults": { "medium": "meeting" }, "dryRun": true}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "dryRun": true, "from": "string", "to": "string", "eventIds": [ "e850fa5b-aba1-4239-8c42-22b92a305f16" ], "fields": [ { "from": "string", "to": "string", "events": -9007199254740991 } ], "dropped": [ { "field": "string", "events": -9007199254740991, "assertions": -9007199254740991 } ], "defaults": [ { "field": "string", "events": -9007199254740991 } ]}Log an event POST
Log a conversation using an event type from your workspace. Reusing a channel and externalId returns the existing event and adds any new links. Requires the `write` scope.
Query across event types POST
Filter by shared event columns or event type, and page the results. Requires the `read` scope.