{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/progress-software/json-schema/progress-software-credential-modify-schema.json",
  "title": "CredentialModify",
  "description": "Credential structure containing items allowed to be modified.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/progress-software-credential-api-openapi.yml#/components/schemas/CredentialModify",
  "type": "object",
  "properties": {
    "name": {
      "description": "New name for the credential.",
      "type": "string"
    },
    "description": {
      "description": "New description for the credential",
      "type": "string"
    },
    "propertyBags": {
      "description": "set of properties to be added or replaced on this credential",
      "type": "array",
      "items": {
        "$ref": "#/$defs/CredentialPropertyBag"
      }
    }
  },
  "$defs": {
    "CredentialPropertyBag": {
      "description": "List of properties to be added to the device\nProperty Names should be unique in the list.",
      "type": "object",
      "properties": {
        "name": {
          "description": "Required: Name of property",
          "maxLength": 50,
          "minLength": 0,
          "type": "string"
        },
        "value": {
          "description": "Defaults to empty. Value to be used for property.",
          "type": "string"
        }
      }
    }
  }
}