---
title: "setAutoSaveOptions"
slug: "api/project/operations/setautosaveoptions"
sidebar:
  order: 607
---

<a id="ref-870090018e5a"></a>
<a id="ref-4d7300366eb2"></a>
<a id="ref-01966b8f0836"></a>

## Synopsis

```text
AutoSaveOptions setAutoSaveOptions(
    string sessionId,
    AutoSaveOptions? options
)
```

See also: [AutoSaveOptions](/pCon/configuratorOnline/specs/api/project/types/autosaveoptions#ref-476d9b59fe5e)

Sets auto-save options for projects loaded from and saved to the project store (newly created projects are not auto-saved until they have been saved for the first time).

Project versions saved by auto-save are marked as such and are automatically deleted the next time the project is saved.

Auto-save should usually be configured in the session startup file, but can be changed afterwards on a per-session basis using the project store method setAutoSaveOptions().

Options: Argument and all the options specified within the `options` argument are optional. The return value represents the current set of options (i.e. the previous set of options with the new options, if any, applied).
