Deploy CLI error when changing session cookie mode: 'Too few properties defined (0), minimum 1'

Problem statement

We are trying to use the Deploy CLI to change the Session Cookie Mode for our tenant to ‘Non-Persistent Session’, and when doing an import with the following tenant.json file:

{
"session_cookie": {
    "mode": "non-persistent"
  }
}

We get the following error:
Bad Request: Payload validation error: 'Too few properties defined (0), minimum 1' on property flags (Flags used to change the behavior of this tenant).

Cause

  • This error was caused by a bug that was fixed in version 7.17.2 of the Deploy CLI

Solution

If you are seeing this error, check to make use you are using a version of the Deploy CLI that is > v.7.17.2.

1 Like