{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/folio/main/json-schema/folio-job-profile-schema.json",
  "title": "jobProfile",
  "description": "Job profile",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-mod-data-export-openapi.yml#/components/schemas/jobProfile",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "description": "Unique identifier",
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "description": "Job Profile name",
      "type": "string"
    },
    "default": {
      "description": "Is default job profile",
      "type": "boolean",
      "default": false,
      "readonly": true
    },
    "destination": {
      "description": "Final destination place where to send file",
      "type": "string"
    },
    "description": {
      "description": "Job Profile description",
      "type": "string"
    },
    "userInfo": {
      "description": "First name, last name and username of the user, who updated the Job Profile",
      "type": "object",
      "$ref": "#/$defs/userInfo"
    },
    "mappingProfileId": {
      "description": "Associated mapping profile id",
      "type": "string",
      "format": "uuid"
    },
    "protocol": {
      "description": "TCP/IP settings",
      "type": "object",
      "$ref": "#/$defs/protocol"
    },
    "locked": {
      "description": "True if locked, false if unlocked",
      "type": "boolean",
      "default": false
    },
    "lockedBy": {
      "description": "UUID of the user who locked the job profile",
      "type": "string",
      "format": "uuid"
    },
    "lockedAt": {
      "description": "Date and time when job profile was locked",
      "type": "string",
      "format": "date-time"
    },
    "metadata": {
      "description": "Metadata provided by the server",
      "type": "object",
      "$ref": "#/$defs/metadata",
      "readonly": true
    }
  },
  "required": [
    "name",
    "mappingProfileId"
  ],
  "$defs": {
    "metadata": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "title": "Metadata Schema",
      "description": "Metadata about creation and changes to records, provided by the server (client should not provide)",
      "type": "object",
      "properties": {
        "createdDate": {
          "description": "Date and time when the record was created",
          "type": "string",
          "format": "date-time"
        },
        "createdByUserId": {
          "description": "ID of the user who created the record (when available)",
          "type": "string",
          "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
        },
        "createdByUsername": {
          "description": "Username of the user who created the record (when available)",
          "type": "string"
        },
        "updatedDate": {
          "description": "Date and time when the record was last updated",
          "type": "string",
          "format": "date-time"
        },
        "updatedByUserId": {
          "description": "ID of the user who last updated the record (when available)",
          "type": "string",
          "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
        },
        "updatedByUsername": {
          "description": "Username of the user who last updated the record (when available)",
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "createdDate"
      ]
    },
    "protocol": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "description": "TCP/IP",
      "type": "object",
      "properties": {
        "name": {
          "description": "TCP/IP name",
          "type": "string"
        },
        "host": {
          "description": "The host",
          "type": "string"
        },
        "port": {
          "description": "The port",
          "type": "string"
        },
        "authentication": {
          "description": "The authentication",
          "type": "string"
        },
        "description": {
          "description": "The description",
          "type": "string"
        }
      }
    },
    "userInfo": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "description": "User information",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "firstName": {
          "description": "User first name",
          "type": "string"
        },
        "lastName": {
          "description": "User last name",
          "type": "string"
        },
        "userName": {
          "description": "User name (nickname)",
          "type": "string"
        }
      }
    }
  }
}