Skip to main content
PATCH
/
v1
/
guests
/
{_id}
Update a guest
curl --request PATCH \
  --url https://{workspace}.attendu.com/api/v1/guests/{_id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "starred": true,
  "status": {
    "confirmation": 123,
    "declineMessage": "<string>"
  },
  "properties": {
    "firstName": "<string>",
    "lastName": "<string>",
    "email": "<string>",
    "lang": "<string>",
    "ticketType": "<string>"
  },
  "extras": {
    "roommates": [
      "<string>"
    ]
  }
}
'
{
  "_id": "<string>",
  "event": "<string>",
  "status": {
    "confirmation": 2,
    "attendance": 1,
    "declineMessage": null,
    "givenConsents": [],
    "visitedZones": [],
    "addMethod": "publicRegistration",
    "checkInMethod": "qrScan"
  },
  "properties": {
    "firstName": "John",
    "lastName": "Doe",
    "email": "[email protected]",
    "lang": "en",
    "X62TkjiV": "My custom note",
    "yN9hzaCj": "1QLXYBlw",
    "Ybb48GO7": [
      "7bR7m2au",
      "BdwYyYmi"
    ],
    "ticketType": "QF78tnh3"
  },
  "confirmedAt": "2023-11-07T05:31:56Z",
  "attendedAt": "2023-11-07T05:31:56Z",
  "starred": false,
  "extras": {
    "roommates": [
      "507f1f77bcf86cd799439011",
      "507f191e810c19729de860ea"
    ],
    "payment": {
      "isPaid": true,
      "paidAt": "2023-04-15T14:30:00Z",
      "stripePaymentIntent": "pi_3RJut1234567890",
      "stripeInvoice": "in_1RJutEIz1234567890",
      "usedPromoCodes": [
        {
          "id": "43oMGCex",
          "amount": 100,
          "code": "U2QWC8"
        }
      ]
    }
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

_id
string
required

Guest ID to update.

Query Parameters

event
string
required

Associated event ID.

Body

application/json
starred
boolean

Indicates if the guest is starred

status
object
properties
object

Guest properties including default fields and any custom properties defined for the event

extras
object

Optional additional guest data

Response

Guest updated successfully.

_id
string
required

Guest ID

event
string
required

Event ID

status
object
required

Guest status information including confirmation, attendance, consents and check-in details

Example:
{
"confirmation": 2,
"attendance": 1,
"declineMessage": null,
"givenConsents": [],
"visitedZones": [],
"addMethod": "publicRegistration",
"checkInMethod": "qrScan"
}
properties
object
required

Guest properties including default required fields and any custom properties defined for the event

Example:
{
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"lang": "en",
"X62TkjiV": "My custom note",
"yN9hzaCj": "1QLXYBlw",
"Ybb48GO7": ["7bR7m2au", "BdwYyYmi"],
"ticketType": "QF78tnh3"
}
confirmedAt
string<date-time> | null

Date and time when the guest was confirmed

attendedAt
string<date-time> | null

Date and time when the guest attended the event

starred
boolean
default:false

Indicates if the guest is starred

extras
object

Optional additional guest data

Example:
{
"roommates": [
"507f1f77bcf86cd799439011",
"507f191e810c19729de860ea"
],
"payment": {
"isPaid": true,
"paidAt": "2023-04-15T14:30:00Z",
"stripePaymentIntent": "pi_3RJut1234567890",
"stripeInvoice": "in_1RJutEIz1234567890",
"usedPromoCodes": [
{
"id": "43oMGCex",
"amount": 100,
"code": "U2QWC8"
}
]
}
}