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