Vesta Backup

config

Vesta API · 6.0.82 · Community with mTLS

GET/api/v1/settingsGet Settings

Get system settings

Parameters

category · query · Optional

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "title": "Category"
}

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "settings": {
      "additionalProperties": true,
      "description": "Legacy settings are keyed by arbitrary database setting names; values decode according to each stored value_type.",
      "type": "object",
      "x-open-schema-reason": "Legacy settings are keyed by arbitrary database setting names; values decode according to each stored value_type."
    }
  },
  "required": [
    "settings"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Persisted identity lacks required role or installation/platform authority

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

PUT/api/v1/settingsUpdate Settings Bulk

Update multiple system settings at once

Request body

Required

application/json

Schema
{
  "additionalProperties": true,
  "description": "Legacy settings are keyed by arbitrary database setting names; values decode according to each stored value_type.",
  "type": "object",
  "x-open-schema-reason": "Legacy settings are keyed by arbitrary database setting names; values decode according to each stored value_type."
}

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "updated_count": {
      "type": "integer"
    }
  },
  "required": [
    "message",
    "updated_count"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Persisted identity lacks required role or installation/platform authority

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

POST/api/v1/settings/test-emailTest Email Settings

Test email settings by sending a test email

Request body

Required

application/json

Schema
{
  "additionalProperties": true,
  "description": "Recipient passed through to email helper; settings test defaults to current user email when omitted.",
  "properties": {
    "recipient": {
      "description": "Persisted JSON from an unvalidated dict input; arbitrary JSON values are retained.",
      "x-open-schema-reason": "Persisted JSON from an unvalidated dict input; arbitrary JSON values are retained."
    }
  },
  "required": [],
  "type": "object",
  "x-open-schema-reason": "Unknown input keys are ignored by this legacy dict handler."
}

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "recipient": {
      "description": "Persisted JSON from an unvalidated dict input; arbitrary JSON values are retained.",
      "x-open-schema-reason": "Persisted JSON from an unvalidated dict input; arbitrary JSON values are retained."
    }
  },
  "required": [
    "message",
    "recipient"
  ],
  "type": "object"
}

400

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Persisted identity lacks required role or installation/platform authority

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

POST/api/v1/settings/test-s3Test S3 Connection

Test S3 connection with current settings.

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "bucket": {
      "type": "string"
    },
    "endpoint": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "status": {
      "const": "ok",
      "type": "string"
    }
  },
  "required": [
    "status",
    "message",
    "bucket",
    "endpoint"
  ],
  "type": "object"
}

400

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Persisted identity lacks required role or installation/platform authority

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/api/v1/settings/v3Get Settings V3

Get v3 settings (storage and OIDC config) with secret status.

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "encryption_configured": {
      "type": "boolean"
    },
    "secrets": {
      "additionalProperties": false,
      "properties": {
        "oidc.client_secret": {
          "additionalProperties": false,
          "properties": {
            "configured": {
              "type": "boolean"
            },
            "source": {
              "enum": [
                "ui",
                "env",
                null
              ]
            }
          },
          "required": [
            "configured",
            "source"
          ],
          "type": "object"
        },
        "pki.ca_key": {
          "additionalProperties": false,
          "properties": {
            "configured": {
              "type": "boolean"
            },
            "source": {
              "enum": [
                "ui",
                "env",
                null
              ]
            }
          },
          "required": [
            "configured",
            "source"
          ],
          "type": "object"
        },
        "storage.s3.access_key": {
          "additionalProperties": false,
          "properties": {
            "configured": {
              "type": "boolean"
            },
            "source": {
              "enum": [
                "ui",
                "env",
                null
              ]
            }
          },
          "required": [
            "configured",
            "source"
          ],
          "type": "object"
        },
        "storage.s3.secret_key": {
          "additionalProperties": false,
          "properties": {
            "configured": {
              "type": "boolean"
            },
            "source": {
              "enum": [
                "ui",
                "env",
                null
              ]
            }
          },
          "required": [
            "configured",
            "source"
          ],
          "type": "object"
        }
      },
      "required": [
        "storage.s3.access_key",
        "storage.s3.secret_key",
        "oidc.client_secret",
        "pki.ca_key"
      ],
      "type": "object"
    },
    "settings": {
      "additionalProperties": false,
      "properties": {
        "backup.admission_pause": {
          "anyOf": [
            {
              "additionalProperties": false,
              "description": "Installation-owned pause for new backup capacity reservations, including scheduled backups. Already reserved work may continue under its original authority and safety checks. Null on GET means no separate pause; capacity policy remains required. A changed value requires a strictly increased revision. A pause never releases custody or bypasses maintenance.",
              "properties": {
                "paused": {
                  "type": "boolean"
                },
                "revision": {
                  "maximum": 9223372036854775807,
                  "minimum": 1,
                  "type": "integer"
                },
                "schema": {
                  "const": 1,
                  "type": "integer"
                }
              },
              "required": [
                "schema",
                "revision",
                "paused"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "backup.capacity_admission": {
          "anyOf": [
            {
              "additionalProperties": false,
              "description": "Changing a prior policy requires a strictly increased revision. Maintenance blocks new reservations and existing effect continuations. Use backup.admission_pause to stop new reservations while admitted work drains.",
              "properties": {
                "limit": {
                  "maximum": 100000,
                  "minimum": 1,
                  "type": "integer"
                },
                "maintenance": {
                  "type": "boolean"
                },
                "revision": {
                  "maximum": 9223372036854775807,
                  "minimum": 1,
                  "type": "integer"
                },
                "schema": {
                  "const": 1,
                  "type": "integer"
                }
              },
              "required": [
                "schema",
                "revision",
                "limit",
                "maintenance"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "oidc.admin_values": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "oidc.client_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "oidc.default_role": {
          "anyOf": [
            {
              "enum": [
                "viewer",
                "operator"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "oidc.enabled": {
          "type": "boolean"
        },
        "oidc.issuer": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "oidc.operator_values": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "oidc.role_claim": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "oidc.scopes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pki.ca_cert": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pki.require_mtls": {
          "type": "boolean"
        },
        "storage.path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "storage.s3.bucket": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "storage.s3.delete_local": {
          "type": "boolean"
        },
        "storage.s3.endpoint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "storage.s3.prefix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "storage.s3.region": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "storage.type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "backup.capacity_admission",
        "backup.admission_pause",
        "storage.type",
        "storage.path",
        "storage.s3.endpoint",
        "storage.s3.bucket",
        "storage.s3.region",
        "storage.s3.prefix",
        "storage.s3.delete_local",
        "pki.ca_cert",
        "pki.require_mtls",
        "oidc.enabled",
        "oidc.issuer",
        "oidc.client_id",
        "oidc.scopes",
        "oidc.role_claim",
        "oidc.admin_values",
        "oidc.operator_values",
        "oidc.default_role"
      ],
      "type": "object"
    }
  },
  "required": [
    "settings",
    "secrets",
    "encryption_configured"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Persisted identity lacks required role or installation/platform authority

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

PUT/api/v1/settings/v3Update Settings V3

Update v3 settings (storage and OIDC config).

Request body

Required

application/json

Schema
{
  "additionalProperties": false,
  "description": "Flat settings patch; unknown keys and null are invalid. Omitted values retain prior state. String values are trimmed; booleans require JSON booleans. Effective OIDC configuration is validated together. Authorization precedes sensitive JSON decoding; malformed input returns 400 after authorization.",
  "properties": {
    "backup.admission_pause": {
      "additionalProperties": false,
      "description": "Installation-owned pause for new backup capacity reservations, including scheduled backups. Already reserved work may continue under its original authority and safety checks. Null on GET means no separate pause; capacity policy remains required. A changed value requires a strictly increased revision. A pause never releases custody or bypasses maintenance.",
      "properties": {
        "paused": {
          "type": "boolean"
        },
        "revision": {
          "maximum": 9223372036854775807,
          "minimum": 1,
          "type": "integer"
        },
        "schema": {
          "const": 1,
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "revision",
        "paused"
      ],
      "type": "object"
    },
    "backup.capacity_admission": {
      "additionalProperties": false,
      "description": "Changing a prior policy requires a strictly increased revision. Maintenance blocks new reservations and existing effect continuations. Use backup.admission_pause to stop new reservations while admitted work drains.",
      "properties": {
        "limit": {
          "maximum": 100000,
          "minimum": 1,
          "type": "integer"
        },
        "maintenance": {
          "type": "boolean"
        },
        "revision": {
          "maximum": 9223372036854775807,
          "minimum": 1,
          "type": "integer"
        },
        "schema": {
          "const": 1,
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "revision",
        "limit",
        "maintenance"
      ],
      "type": "object"
    },
    "oidc.admin_values": {
      "type": "string"
    },
    "oidc.client_id": {
      "type": "string"
    },
    "oidc.client_secret": {
      "description": "Omitted, empty, whitespace-only or entirely */• masked strings retain the current secret. Null is invalid. No clear-secret operation.",
      "type": "string",
      "writeOnly": true
    },
    "oidc.default_role": {
      "enum": [
        "viewer",
        "operator"
      ],
      "type": "string"
    },
    "oidc.enabled": {
      "type": "boolean"
    },
    "oidc.issuer": {
      "type": "string"
    },
    "oidc.operator_values": {
      "type": "string"
    },
    "oidc.role_claim": {
      "type": "string"
    },
    "oidc.scopes": {
      "type": "string"
    },
    "pki.ca_cert": {
      "type": "string"
    },
    "pki.ca_key": {
      "description": "Omitted, empty, whitespace-only or entirely */• masked strings retain the current secret. Null is invalid. No clear-secret operation.",
      "type": "string",
      "writeOnly": true
    },
    "pki.require_mtls": {
      "type": "boolean"
    },
    "storage.path": {
      "type": "string"
    },
    "storage.s3.access_key": {
      "description": "Omitted, empty, whitespace-only or entirely */• masked strings retain the current secret. Null is invalid. No clear-secret operation.",
      "type": "string",
      "writeOnly": true
    },
    "storage.s3.bucket": {
      "type": "string"
    },
    "storage.s3.delete_local": {
      "type": "boolean"
    },
    "storage.s3.endpoint": {
      "type": "string"
    },
    "storage.s3.prefix": {
      "type": "string"
    },
    "storage.s3.region": {
      "type": "string"
    },
    "storage.s3.secret_key": {
      "description": "Omitted, empty, whitespace-only or entirely */• masked strings retain the current secret. Null is invalid. No clear-secret operation.",
      "type": "string",
      "writeOnly": true
    },
    "storage.type": {
      "type": "string"
    }
  },
  "required": [],
  "type": "object"
}

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "status": {
      "const": "ok",
      "type": "string"
    },
    "updated_secrets": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "updated_settings": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "status",
    "updated_settings",
    "updated_secrets"
  ],
  "type": "object"
}

400

Invalid configuration after authorization; secret values are never echoed.

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

401

Invalid or disabled authenticated identity.

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Installation authority required.

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

500

Settings transaction failed and rolled back.

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

PUT/api/v1/settings/{setting_id}Update Setting

Update a system setting

Parameters

setting_id · path · Required

{
  "title": "Setting Id",
  "type": "string"
}

Request body

Required

application/json

Schema
{
  "additionalProperties": true,
  "properties": {
    "value": {
      "description": "Persisted JSON from an unvalidated dict input; arbitrary JSON values are retained.",
      "x-open-schema-reason": "Persisted JSON from an unvalidated dict input; arbitrary JSON values are retained."
    }
  },
  "required": [],
  "type": "object",
  "x-open-schema-reason": "Unknown input keys are ignored by this legacy dict handler."
}

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "setting": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string"
        },
        "key": {
          "type": "string"
        },
        "value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "key",
        "value"
      ],
      "type": "object"
    }
  },
  "required": [
    "message",
    "setting"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Persisted identity lacks required role or installation/platform authority

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

404

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}