{"lexicon":1,"id":"tickets.atmosphere.createCapacityGroup","defs":{"main":{"type":"procedure","description":"Create a private capacity group for an app-scoped ticketed event.","input":{"encoding":"application/json","schema":{"type":"object","required":["organizerDid","event","name","totalCapacity"],"nullable":["organizerAssertionJwt"],"properties":{"environment":{"type":"string","knownValues":["test","live"],"maxLength":16},"organizerDid":{"type":"string","format":"did"},"organizerAssertionJwt":{"type":"string","description":"Optional short-lived user service-auth JWT from organizerDid to ATM, scoped to tickets.atmosphere.createCapacityGroup. Proves the app is configuring ticketing with organizer consent. Required when binding/reassigning an event to an organizer other than the app itself.","maxLength":8192},"event":{"type":"ref","ref":"tickets.atmosphere.defs#eventInput"},"name":{"type":"string","minLength":1,"maxLength":200},"totalCapacity":{"type":"integer","minimum":1,"maximum":250000},"metadata":{"type":"unknown"}}}},"output":{"encoding":"application/json","schema":{"type":"object","required":["event","capacityGroup"],"properties":{"event":{"type":"ref","ref":"tickets.atmosphere.defs#eventSummary"},"capacityGroup":{"type":"ref","ref":"tickets.atmosphere.defs#capacityGroupSummary"}}}},"errors":[{"name":"AppNotRegistered","description":"Caller DID is not registered as an ATM app."},{"name":"TicketsModuleDisabled","description":"This app has not enabled ATM Tickets."},{"name":"OrganizerNotRegistered","description":"Organizer has not signed in to ATM yet."},{"name":"PaymentSetupIncomplete","description":"Organizer has not finished ATM payment setup."},{"name":"OrganizerConsentRequired","description":"A verified organizer authorization (organizerAssertionJwt) is required to configure ticketing for this organizer."},{"name":"OrganizerReassignmentNotAllowed","description":"This event already belongs to a different organizer; a fresh organizer authorization is required to reassign it."},{"name":"InvalidCapacity","description":"Capacity must be at least 1."},{"name":"UserDidMismatch","description":"organizerAssertionJwt issuer does not match organizerDid."}]}}}