Skip to main content
PUT
/
reg-types
/
update
/
{registrant_type_id}
Update Type
curl --request PUT \
  --url https://api.swoogo.com/api/v1/reg-types/update/{registrant_type_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data admin_short_name= \
  --data capacity= \
  --data 'name=Updated Reg Type Name' \
  --data public_short_name=
{
  "admin_short_name": "",
  "capacity": "",
  "created_at": "2023-05-17 10:15:53",
  "description": null,
  "id": 59,
  "max_group_size": null,
  "min_group_size": null,
  "name": "Updated Reg Type Name",
  "public_short_name": "",
  "sold_out_message": "Sold Out",
  "updated_at": "2023-05-17 10:46:52"
}

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}.

Path Parameters

registrant_type_id
integer
required

integer - required - The ID of the registrant type you want to update

Example:

1

Body

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

""

capacity
string
Example:

""

name
string
Example:

"Updated Reg Type Name"

public_short_name
string
Example:

""

Response

200 - application/json

Update A Registrant Type

admin_short_name
string
Example:

""

capacity
string
Example:

""

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:

"Updated Reg Type Name"

public_short_name
string
Example:

""

sold_out_message
string
Example:

"Sold Out"

updated_at
string
Example:

"2023-05-17 10:46:52"