Skip to content

saveEvent

Create or update an event. A model with an id updates that event; without one, it creates one.

catalog {
saveEvent(
andPublish: Boolean!
asTemplate: Boolean
copyCount: Int
model: EventInput!
): Event
}

Publish the event once it is saved. Only a draft or lapsed event can be published, and its first publish generates its inventory from its venue configuration, which can take a few minutes. Not with asTemplate.

Save the event as a template to copy new ones from. Only a draft or a template can be saved as one. False by default.

Create this many events from the model, putting 1, 2, 3 and so on in place of {0} in its code and name. Only the first is returned. Omitted or 1: one event. Only when creating: an update with more than 1 is refused.

The event to save.

An event, such as a match.