# Update external agent email address **PATCH /external-agents/{externalAgentId}/email-addresses/{emailAddressTypeCode}** Using the external agent id and email address type code in the request path, the method updates the email address fields specified in the request body. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Bearer token ## Parameters ### Body: application/json (object) object ## Responses ### 200 Successfully updated the email address #### Body: application/json (object) object ### 400 Invalid request. See response body for details. ### 401 Unauthorized request. See response body for details. ### 403 Permission denied. See response body for details. ### 404 External agent or email address not found. #### Body: application/json (object) - **code** (integer(int32)) - **message** (string) - **details** (array[string]) ### 409 Email address already exists. #### Body: application/json (object) - **code** (integer(int32)) - **message** (string) - **details** (array[string]) ### 412 Optimistic concurrency check failed. The If-Match header is missing or it does not contain the version currently in the database. ### 500 Unknown error. See response body for details. [Powered by Bump.sh](https://bump.sh)