{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://artifacts.apis.io/folio/json-schema/folio-update-credentials-schema.json",
  "title": "Update Credentials Schema",
  "description": "An entity that describes the necessary data to update a user password",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-credentials-api-openapi.yml#/components/schemas/updateCredentials",
  "id": "updateCredentials.json",
  "type": "object",
  "properties": {
    "username": {
      "description": "username",
      "type": "string"
    },
    "userId": {
      "description": "Unique user id",
      "type": "string"
    },
    "password": {
      "description": "The current password of the user who will be replaced by the new one",
      "type": "string"
    },
    "newPassword": {
      "description": "New user password",
      "type": "string"
    }
  },
  "required": [
    "username",
    "password",
    "newPassword"
  ]
}