30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Set Ticket Capacity

tickets/set-ticket-capacity changes capacity and mode without touching name, price or sale window.

It exists as a separate ability because capacity is the field most likely to be got wrong, and getting it wrong means selling seats that do not exist.

At a glance

Abilitytickets/set-ticket-capacity
ToolsetEvent Tickets — toolset/event-tickets
GroupEvent Tickets › Capacity
RequiresEvent Tickets, active on the site
Capabilitymanage_options
SafetyWrites data
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

The reconciliation is the point

Stock in Event Tickets is what remains, not what was originally offered. Write the meta directly to 100 on a ticket that has sold 30 and the plugin now believes 130 seats exist.

This routes through the plugin’s own capacity handling, which subtracts sold and pending from the new number — so setting 100 on that ticket leaves 70 in stock and 100 total, which is what anybody actually meant.

The result is read back and the call is refused if it did not take. A capacity write that silently failed is indistinguishable from one that worked until the event oversells.

Input

NameTypeRequiredWhat it is
ticket_idintegerYesThe ticket ID.
capacityintegerNoNew capacity. -1 for unlimited.
capacity_modestringNoown keeps independent stock; global draws from the event pool; capped draws from the pool up to a limit; unlimited has no cap.
shared_capintegerNoThe limit when the mode is capped.

What comes back

NameTypeWhat it is
ticketobjectThe ticket after the write, read back from the plugin.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

We’ve got a bigger room — raise this ticket from 50 to 80.

It resolves to one call:

{
  "ability": "tickets/set-ticket-capacity",
  "parameters": {
    "ticket_id": 980,
    "capacity": 80
  }
}

Worth knowing

  • Idempotent — setting the capacity it already has changes nothing.
  • Never write _tribe_ticket_capacity or its siblings directly. This is the only safe route.
  • Reducing capacity below what is already sold is a decision, not an error. Read tickets/get-capacity-report first.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading