Skip to main content
POST
/
reg-types
/
create
Create Type
curl --request POST \
  --url https://api.swoogo.com/api/v1/reg-types/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data capacity=20 \
  --data event_id=1 \
  --data 'name=Sample Reg Type'
{
  "admin_short_name": null,
  "capacity": "20",
  "created_at": "2023-05-17 10:15:53",
  "description": null,
  "id": 59,
  "max_group_size": null,
  "min_group_size": null,
  "name": "Sample Reg Type",
  "public_short_name": null,
  "sold_out_message": null,
  "updated_at": "2023-05-17 10:15:53"
}

Authorizations

Authorization
string
header
required

OAuth 2.0 bearer token obtained from POST /oauth2/token. Tokens expire after 30 minutes. Include in the Authorization header as Bearer {access_token}.

Body

application/x-www-form-urlencoded
capacity
string
Example:

"20"

event_id
string
Example:

"1"

name
string
Example:

"Sample Reg Type"

Response

201 - application/json

Create A Registrant Type

admin_short_name
unknown
capacity
string
Example:

"20"

created_at
string
Example:

"2023-05-17 10:15:53"

description
unknown
id
number
Example:

59

max_group_size
unknown
min_group_size
unknown
name
string
Example:

"Sample Reg Type"

public_short_name
unknown
sold_out_message
unknown
updated_at
string
Example:

"2023-05-17 10:15:53"