---
agentTools:
  projectIndex: https://docs.addevent.com/llms.txt
---

# Update an RSVP attendee

Updates an RSVP attendee by setting the values of the parameters passed. Any parameters not provided will be left unchanged. This request accepts mostly the same properties as the RSVP attendee creation call.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "version": "v2.14.0",
    "title": "Calendar and Event API",
    "contact": {
      "name": "AddEvent Inc",
      "email": "support@addevent.com"
    }
  },
  "servers": [
    {
      "url": "https://api.addevent.com/calevent/v2"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/rsvps/{attendee_id}": {
      "patch": {
        "operationId": "update-rsvp-attendee",
        "summary": "Update an RSVP attendee",
        "tags": [
          "RSVP attendees"
        ],
        "description": "Updates an RSVP attendee by setting the values of the parameters passed. Any parameters not provided will be left unchanged. This request accepts mostly the same properties as the RSVP attendee creation call.",
        "parameters": [
          {
            "$ref": "#/components/parameters/attendee-id"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/attendee-update"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/20x-attendee"
          },
          "400": {
            "$ref": "#/components/responses/400-invalid-request-body"
          },
          "404": {
            "$ref": "#/components/responses/404-not-found"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "attendee-id": {
        "name": "attendee_id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^\\S+$"
        },
        "description": "Unique identifier for the RSVP attendee."
      }
    },
    "requestBodies": {
      "attendee-update": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/attendee-input"
            }
          }
        }
      }
    },
    "schemas": {
      "attendee-input": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$",
            "format": "email",
            "description": "Email address of the RSVP attendee. Update and reminder emails about the event will be sent to this email address. Email addresses must be unique for each attendee of a given event."
          },
          "attending": {
            "type": "string",
            "enum": [
              "going",
              "maybe",
              "not-going"
            ],
            "default": "going",
            "description": "The attendee's response to the event. The following responses are allowed: `going`, `maybe`, `not-going`.\n"
          },
          "notify": {
            "type": "string",
            "enum": [
              "active"
            ],
            "description": "By default, no attendee confirmation or organizer notification emails are sent when a new RSVP attendee is created via the API. If this parameter is set to `active` then when a new RSVP attendee is created via the API:\n\n* an attendee confirmation email is sent to the RSVP attendee's email address if confirmation emails are enabled for the event\n* an internal organizer notification email is sent to to the organizer notification email addresses listed under RSVP settings(`notify_emails`) if `notify_frequency` is set to `all` for an event.\n\nNote that attendee reminder and follow-up emails are not affected by this setting.\n"
          },
          "rsvp_form_data": {
            "type": "object",
            "description": "The default RSVP form has one required input field (`name`: the user's name). **You must provide a value for this field when making the request.**\n\nCreate a custom RSVP forms to collect additional information about your RSVP attendees - https://dashboard.addevent.com/forms/rsvp\n"
          }
        }
      },
      "attendee": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the RSVP attendee."
          },
          "event_id": {
            "type": "string",
            "description": "The ID of the event associated with the RSVP attendee."
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Email address of the attendee. Update and reminder emails about the event will be sent to this email address."
          },
          "attending": {
            "type": "string",
            "description": "The attendee's response to the event. Attendee response is one of the following values: `going`, `maybe`, `not-going`.\n"
          },
          "rsvp_form_data": {
            "type": "object",
            "description": "Values entered by the user in the RSVP form when responding to the event. The default RSVP form contains a single input field to collect the user's name (`name`). Other data can be collected using a custom RSVP form."
          },
          "rsvp_form_labels": {
            "type": "object",
            "description": "The names of the input fields for the RSVP form. The names of these input fields can be matched to the values entered by the attendee using the keys of both objects."
          },
          "geo_location": {
            "$ref": "#/components/schemas/geolocation"
          },
          "created": {
            "type": "string",
            "description": "Time at which the attendee was created."
          },
          "modified": {
            "type": "string",
            "description": "Time at which the attendee was last updated."
          }
        }
      },
      "geolocation": {
        "type": "object",
        "properties": {
          "ip": {
            "type": "string",
            "format": "ipv4"
          },
          "city": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "postal": {
            "type": "string"
          }
        },
        "description": "The user's location where they subscribed to a calendar or RSVPd to an event. Note that for users that are located in regions covered by GDPR, this data is automatically annonymized. You can also choose to annonymize all geolcation data collection for your account from your settings page."
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "APIkey",
        "description": "Your API key can be found on your AddEvent account page - https://dashboard.addevent.com/account/settings"
      }
    },
    "responses": {
      "20x-attendee": {
        "description": "Ok",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/attendee"
            },
            "examples": {
              "RSVP attendee": {
                "$ref": "#/components/examples/attendee-all"
              }
            }
          }
        }
      },
      "400-invalid-request-body": {
        "description": "Bad request",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error_id": {
                  "type": "string",
                  "description": "A UUID which can be used to troubleshoot the error."
                },
                "error_message": {
                  "type": "string",
                  "description": "Additional information about the error."
                },
                "property_validation_errors": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "reason": {
                        "type": "string"
                      }
                    }
                  },
                  "description": "An array of invalid property names, and the associated reason that the property is invalid."
                }
              }
            },
            "examples": {
              "Invalid request body": {
                "$ref": "#/components/examples/invalid-request-body"
              }
            }
          }
        }
      },
      "404-not-found": {
        "description": "Not found"
      }
    },
    "examples": {
      "invalid-request-body": {
        "value": {
          "error_message": "There are a number of validation errors with the request",
          "error_id": "00c3317d-ecdc-449d-84f5-8562bc1ff831",
          "property_validation_errors": [
            {
              "name": "rrule",
              "reason": "Not a valid RRule value"
            },
            {
              "name": "title",
              "reason": "Cannot have blank value"
            }
          ]
        }
      },
      "attendee-all": {
        "value": {
          "id": "MNerUCWg1191",
          "event_id": "evt-3a4a096ca3804b09b0839a6a2be2f8df",
          "email": "emailaddress@addevent.com",
          "rsvp_form_data": {
            "name": "Firstname Lastname"
          },
          "rsvp_form_labels": {
            "name": "Name",
            "email": "Email"
          },
          "geo_location": {
            "ip": "",
            "city": "San Francisco",
            "region": "California",
            "country": "US",
            "location": "37.781500, -122.402400",
            "postal": 94107
          },
          "created": "2023-11-10 05:33:31",
          "modified": "2023-11-20 16:00:01"
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 165,
      "2": 2,
      "3": 119,
      "4": 10,
      "5": 212,
      "6": 106,
      "7": 0,
      "8": 55,
      "9": 83,
      "10": 79,
      "11": 76
    }
  }
}
```