---
updatedAt: 2026-07-23T19:26:27.000Z
agentTools:
  projectIndex: https://developers.envoy.com/hub/llms.txt
---

# Update an Invite

Update an invite. Note that the flow and employee (if these are provided) must match up with the location, or the invite update may not succeed.

**Important Notes about customFields:**
- The `customFields` parameter is an array of custom field responses that correspond to the sign-in fields configured in the flow
- Common fields include:
  - `Host`: The name of the employee hosting the visitor (you can also use the `hostEmployeeId` field to set this directly)
  - `Purpose of visit`: The reason for the visit (typically required and must match the flow name)
  - `Your Full Name`: Visitor's full name
  - `Your Email Address`: Visitor's email
  - `Company Name` or `Your Company`: The visitor's company name
  - Additional custom fields specific to your flow configuration
- The exact fields depend on the flow configuration. Query the flow's sign-in fields to see what's available.


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "\"Visitors and Workplace API\"",
    "version": "0.1.0",
    "description": "The REST interface for the Envoy Protect API."
  },
  "paths": {
    "/v1/invites/{id}": {
      "post": {
        "summary": "Update an Invite",
        "tags": [
          "Invites"
        ],
        "operationId": "updateInvite",
        "description": "Update an invite. Note that the flow and employee (if these are provided) must match up with the location, or the invite update may not succeed.\n\n**Important Notes about customFields:**\n- The `customFields` parameter is an array of custom field responses that correspond to the sign-in fields configured in the flow\n- Common fields include:\n  - `Host`: The name of the employee hosting the visitor (you can also use the `hostEmployeeId` field to set this directly)\n  - `Purpose of visit`: The reason for the visit (typically required and must match the flow name)\n  - `Your Full Name`: Visitor's full name\n  - `Your Email Address`: Visitor's email\n  - `Company Name` or `Your Company`: The visitor's company name\n  - Additional custom fields specific to your flow configuration\n- The exact fields depend on the flow configuration. Query the flow's sign-in fields to see what's available.\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The inviteId of the invite that you would like to update.",
            "schema": {
              "$ref": "#/components/schemas/ID"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invite": {
                    "$ref": "#/components/schemas/UpdateInviteInput"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "invites.write",
              "employees.read"
            ]
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "default": {
            "description": "Invite!",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Invite"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "relationships": {
                          "type": "array",
                          "description": "Optional relationships to load with the `relationships` query param.",
                          "items": {
                            "type": "string"
                          }
                        },
                        "messages": {
                          "type": "array",
                          "description": "Optional scope information.",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ID": {
        "type": "string",
        "title": "ID",
        "description": "The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"4\"`) or integer (such as `4`) input value will be accepted as an ID."
      },
      "String": {
        "type": "string",
        "title": "String",
        "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text."
      },
      "Boolean": {
        "type": "boolean",
        "title": "Boolean",
        "description": "The `Boolean` scalar type represents `true` or `false`."
      },
      "Invite": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "description": ""
              },
              {
                "$ref": "#/components/schemas/ID"
              }
            ]
          },
          "createdAt": {
            "allOf": [
              {
                "description": ""
              },
              {
                "$ref": "#/components/schemas/DateTime"
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "description": ""
              },
              {
                "$ref": "#/components/schemas/DateTime"
              }
            ]
          },
          "expectedArrivalAt": {
            "allOf": [
              {
                "description": "A timestamp indicating the expected arrival time. The format is ISO-8601 and can specify a time zone but is otherwise in UTC."
              },
              {
                "example": "2022-04-01T07:00:00.000Z"
              },
              {
                "$ref": "#/components/schemas/DateTime"
              }
            ]
          },
          "expectedDepartureAt": {
            "allOf": [
              {
                "description": "A timestamp indicating the expected departure time. The format is ISO-8601 and can specify a time zone but is otherwise in UTC."
              },
              {
                "example": "2022-04-01T08:00:00.000Z"
              },
              {
                "$ref": "#/components/schemas/DateTime"
              }
            ]
          },
          "type": {
            "allOf": [
              {
                "description": "The type of registration the invite corresponds to. Currently, there are two possible options, \"VISITOR\" and \"EMPLOYEE\". The type is derived from the flow attached to the invite."
              },
              {
                "$ref": "#/components/schemas/String",
                "type": "string"
              }
            ]
          },
          "flowId": {
            "allOf": [
              {
                "description": ""
              },
              {
                "$ref": "#/components/schemas/ID"
              }
            ]
          },
          "locationId": {
            "allOf": [
              {
                "description": ""
              },
              {
                "$ref": "#/components/schemas/ID"
              }
            ]
          },
          "approvalStatus": {
            "allOf": [
              {
                "description": "The current status of the invite in the approval chain. Possible values are \"PENDING\", \"APPROVED\", \"DENIED\", and \"AWAITING_REVIEW\"."
              },
              {
                "$ref": "#/components/schemas/InviteStatus"
              }
            ]
          },
          "notes": {
            "allOf": [
              {
                "description": ""
              },
              {
                "$ref": "#/components/schemas/String",
                "type": "string"
              }
            ]
          },
          "customFields": {
            "allOf": [
              {
                "description": "'Any of the custom questions in the flow attached to the invite, along with the invitee's answers to those questions. Providing these for a new invite will pre-populate the answers. These must match exactly with the flow's sign-in fields, and one of them must be \"Purpose of visit\" with the flow name as the answer.'"
              },
              {
                "example": "{\"Purpose of visit\": \"Interviewer\"}"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CustomField"
                }
              }
            ]
          },
          "secretToken": {
            "allOf": [
              {
                "description": "The token used to refer to the invite externally. Can be used to generate a QR code, for instance."
              },
              {
                "$ref": "#/components/schemas/String",
                "type": "string"
              }
            ]
          },
          "sendEmailToInvitee": {
            "allOf": [
              {
                "description": "Whether to send an email to the invitee."
              },
              {
                "$ref": "#/components/schemas/Boolean"
              }
            ]
          },
          "invitee": {
            "allOf": [
              {
                "description": ""
              },
              {
                "$ref": "#/components/schemas/Invitee"
              }
            ]
          },
          "host": {
            "allOf": [
              {
                "description": ""
              },
              {
                "$ref": "#/components/schemas/Host"
              }
            ]
          },
          "photoUrl": {
            "allOf": [
              {
                "description": "Photo URL for the visitor."
              },
              {
                "$ref": "#/components/schemas/URL"
              }
            ]
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "expectedArrivalAt",
          "type",
          "invitee"
        ]
      },
      "CustomField": {
        "type": "object",
        "properties": {
          "field": {
            "allOf": [
              {
                "description": ""
              },
              {
                "$ref": "#/components/schemas/String",
                "type": "string"
              }
            ]
          },
          "value": {
            "allOf": [
              {
                "description": ""
              },
              {
                "$ref": "#/components/schemas/String",
                "type": "string"
              }
            ]
          }
        },
        "required": [
          "field",
          "value"
        ]
      },
      "Invitee": {
        "type": "object",
        "properties": {
          "name": {
            "allOf": [
              {
                "description": ""
              },
              {
                "$ref": "#/components/schemas/String",
                "type": "string"
              }
            ]
          },
          "email": {
            "allOf": [
              {
                "description": ""
              },
              {
                "$ref": "#/components/schemas/String",
                "type": "string"
              }
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "Host": {
        "type": "object",
        "properties": {
          "name": {
            "allOf": [
              {
                "description": ""
              },
              {
                "$ref": "#/components/schemas/String",
                "type": "string"
              }
            ]
          },
          "email": {
            "allOf": [
              {
                "description": ""
              },
              {
                "$ref": "#/components/schemas/String",
                "type": "string"
              }
            ]
          }
        },
        "required": [
          "name",
          "email"
        ]
      },
      "InviteStatus": {
        "type": "string",
        "anyOf": [
          {
            "enum": [
              "PENDING"
            ],
            "title": "PENDING"
          },
          {
            "enum": [
              "APPROVED"
            ],
            "title": "APPROVED"
          },
          {
            "enum": [
              "DENIED"
            ],
            "title": "DENIED"
          },
          {
            "enum": [
              "AWAITING_REVIEW"
            ],
            "title": "AWAITING_REVIEW"
          }
        ]
      },
      "InviteeInput": {
        "type": "object",
        "properties": {
          "name": {
            "$ref": "#/components/schemas/String",
            "description": "The name of the invitee.",
            "type": "string"
          },
          "email": {
            "$ref": "#/components/schemas/String",
            "description": "The email of the invitee.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      },
      "CustomFieldInput": {
        "type": "object",
        "properties": {
          "field": {
            "$ref": "#/components/schemas/String",
            "description": "The name of the custom sign in field from your sign in flow.",
            "type": "string"
          },
          "value": {
            "$ref": "#/components/schemas/String",
            "description": "The value assigned for the given field.",
            "type": "string"
          }
        },
        "required": [
          "field",
          "value"
        ]
      },
      "UpdateInviteInput": {
        "type": "object",
        "properties": {
          "expectedArrivalAt": {
            "$ref": "#/components/schemas/DateTime",
            "description": "The time (UTC) that the invitee is expected to arrive at.",
            "type": "string"
          },
          "expectedDepartureAt": {
            "$ref": "#/components/schemas/DateTime",
            "description": "The time (UTC) that the invitee is expected to depart at."
          },
          "invitee": {
            "$ref": "#/components/schemas/InviteeInput"
          },
          "locationId": {
            "$ref": "#/components/schemas/ID",
            "description": "The id for the location that you want associated with the invite. You can find locationIds by using the GET locations endpoint.",
            "type": "string"
          },
          "flowId": {
            "$ref": "#/components/schemas/ID",
            "description": "The id for the flow you want associated with the invite. You can find flowIds by using the GET flows endpoint.",
            "type": "string"
          },
          "notes": {
            "$ref": "#/components/schemas/String",
            "description": "Internal notes that you want associated to the invite.",
            "type": "string"
          },
          "hostEmployeeId": {
            "$ref": "#/components/schemas/ID",
            "description": "If you would like an internal host to be associated with the invite, include their employeeId here. EmployeeIds can be found by using the GET employees endpoint.",
            "type": "string"
          },
          "customFields": {
            "type": "array",
            "description": "'Any of the custom questions in the flow attached to the invite, along with the invitee's answers to those questions. Providing these for a new invite will pre-populate the answers. These must match exactly with the flow's sign-in fields, and one of them must be \"Purpose of visit\" with the flow name as the answer.'",
            "example": "{\"Purpose of visit\": \"Interviewer\"}",
            "items": {
              "$ref": "#/components/schemas/CustomFieldInput"
            }
          },
          "photoBase64": {
            "$ref": "#/components/schemas/String",
            "description": "Base64 encoded photo data.",
            "type": "string"
          }
        }
      },
      "DateTime": {
        "type": "string",
        "title": "DateTime",
        "description": "A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.",
        "format": "date-time"
      },
      "URL": {
        "type": "string",
        "title": "URL",
        "description": "A field whose value conforms to the standard URL format as specified in RFC3986: https://www.ietf.org/rfc/rfc3986.txt."
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "/authorize",
            "tokenUrl": "/token",
            "scopes": {
              "flows.read": "read flows",
              "agreements.read": "read agreements",
              "audit-logs.read": "read audit-logs",
              "blacklist-filters.read": "read blacklist-filters",
              "blacklist-filters.write": "write blacklist-filters",
              "companies.read": "read companies",
              "employees.read": "read employees",
              "entries.read": "read entries",
              "invites.read": "read invites",
              "locations.read": "read locations",
              "reservations.read": "read reservations",
              "spaces.read": "read spaces",
              "sign-in-fields.read": "read sign-in-fields",
              "signed-documents.read": "read signed-documents",
              "work-schedules.read": "read work-schedules",
              "reservations.write": "write reservations",
              "work-schedules.write": "write work-schedules",
              "deliveries.read": "read deliveries",
              "deliveries.write": "write deliveries"
            }
          }
        }
      },
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "servers": [
    {
      "url": "https://api.envoy.com",
      "description": ""
    }
  ]
}
```