{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://docs.delinea.com/online-help/secret-server/api-scripting/rest-api/schemas/FolderUpdateArgs",
  "title": "FolderUpdateArgs",
  "description": "Available options for updating a secret folder",
  "required": [
    "id",
    "folderTypeId",
    "folderName"
  ],
  "properties": {
    "folderName": {
      "description": "The name of the folder",
      "type": "string"
    },
    "folderTypeId": {
      "description": "The icon to display for the folder. Depricated in latest UI. Use 1 when setting this value.",
      "type": "integer",
      "format": "int32",
      "maximum": 3,
      "minimum": 1
    },
    "id": {
      "description": "Folder ID. Must match ID in path",
      "type": "integer",
      "format": "int32",
      "minimum": 1
    },
    "inheritPermissions": {
      "description": "Whether the folder should inherit permissions from its parent (default: true)",
      "type": "boolean"
    },
    "inheritSecretPolicy": {
      "description": "Whether the folder should inherit the secret policy.  Defaults to true unless creating a root folder.",
      "type": "boolean"
    },
    "parentFolderId": {
      "description": "The ID of this folder's parent folder.",
      "type": "integer",
      "format": "int32",
      "minimum": -1
    },
    "secretPolicyId": {
      "description": "The id of the Secret Policy that sets security and other settings on secrets contained within the folder.",
      "type": "integer",
      "format": "int32"
    }
  },
  "type": "object"
}