# abandonmentEmailStateUpdate - admin - MUTATION Version: unstable ## Description Updates the email state value for an abandonment. ### Access Scopes `write_marketing_events` access scope. ## Arguments * [emailSentAt](/docs/api/admin/unstable/scalars/DateTime): DateTime - The date and time for when the email was sent, if that is the case. * [emailState](/docs/api/admin/unstable/enums/AbandonmentEmailState): AbandonmentEmailState! - The new email state of the abandonment. * [emailStateChangeReason](/docs/api/admin/unstable/scalars/String): String - The reason why the email was or was not sent. * [id](/docs/api/admin/unstable/scalars/ID): ID! - The ID of the abandonment that needs to be updated. ## Returns * [abandonment](/docs/api/admin/unstable/objects/Abandonment): Abandonment The updated abandonment. * [userErrors](/docs/api/admin/unstable/objects/AbandonmentEmailStateUpdateUserError): AbandonmentEmailStateUpdateUserError! The list of errors that occurred from executing the mutation. ## Examples