Skip to main content
PATCH
/
people
/
:id
cURL
curl --request PATCH \
  --url https://membership.sjaa.net/api/people/:id \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "person[first_name]": "<string>",
  "person[last_name]": "<string>",
  "person[discord_id]": "<string>"
}
'
{
  "id": "<array>",
  "contacts": "<array>",
  "memberships": "<array>",
  "first_name": "<string>",
  "last_name": "<string>",
  "discord_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
person[first_name]
string

Update first name.

person[last_name]
string

Update last name.

person[discord_id]
string

Update Discord user ID.

Response

The updated Person record.

id
array

Internal database identifier. Use where :id is required.

contacts
array

List of contacts, including address, phone, and email.

memberships
array

List of memberships, which include start and end dates.

first_name
string

first name.

last_name
string

last name.

discord_id
string

Discord user ID.