{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ccp-games/json-schema/ccp-games-corporations-corporation-id-roles-history-get-schema.json",
  "title": "CorporationsCorporationIdRolesHistoryGet",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ccp-games-corporation-api-openapi.yml#/components/schemas/CorporationsCorporationIdRolesHistoryGet",
  "items": {
    "properties": {
      "changed_at": {
        "format": "date-time",
        "type": "string"
      },
      "character_id": {
        "description": "The character whose roles are changed",
        "format": "int64",
        "type": "integer"
      },
      "issuer_id": {
        "description": "ID of the character who issued this change",
        "format": "int64",
        "type": "integer"
      },
      "new_roles": {
        "items": {
          "description": "new_role string",
          "enum": [
            "Account_Take_1",
            "Account_Take_2",
            "Account_Take_3",
            "Account_Take_4",
            "Account_Take_5",
            "Account_Take_6",
            "Account_Take_7",
            "Accountant",
            "Auditor",
            "Brand_Manager",
            "Communications_Officer",
            "Config_Equipment",
            "Config_Starbase_Equipment",
            "Container_Take_1",
            "Container_Take_2",
            "Container_Take_3",
            "Container_Take_4",
            "Container_Take_5",
            "Container_Take_6",
            "Container_Take_7",
            "Contract_Manager",
            "Deliveries_Container_Take",
            "Deliveries_Query",
            "Deliveries_Take",
            "Diplomat",
            "Director",
            "Factory_Manager",
            "Fitting_Manager",
            "Hangar_Query_1",
            "Hangar_Query_2",
            "Hangar_Query_3",
            "Hangar_Query_4",
            "Hangar_Query_5",
            "Hangar_Query_6",
            "Hangar_Query_7",
            "Hangar_Take_1",
            "Hangar_Take_2",
            "Hangar_Take_3",
            "Hangar_Take_4",
            "Hangar_Take_5",
            "Hangar_Take_6",
            "Hangar_Take_7",
            "Junior_Accountant",
            "Personnel_Manager",
            "Project_Manager",
            "Rent_Factory_Facility",
            "Rent_Office",
            "Rent_Research_Facility",
            "Security_Officer",
            "Skill_Plan_Manager",
            "Starbase_Defense_Operator",
            "Starbase_Fuel_Technician",
            "Station_Manager",
            "Trader"
          ],
          "type": "string"
        },
        "type": "array",
        "uniqueItems": true
      },
      "old_roles": {
        "items": {
          "description": "old_role string",
          "enum": [
            "Account_Take_1",
            "Account_Take_2",
            "Account_Take_3",
            "Account_Take_4",
            "Account_Take_5",
            "Account_Take_6",
            "Account_Take_7",
            "Accountant",
            "Auditor",
            "Brand_Manager",
            "Communications_Officer",
            "Config_Equipment",
            "Config_Starbase_Equipment",
            "Container_Take_1",
            "Container_Take_2",
            "Container_Take_3",
            "Container_Take_4",
            "Container_Take_5",
            "Container_Take_6",
            "Container_Take_7",
            "Contract_Manager",
            "Deliveries_Container_Take",
            "Deliveries_Query",
            "Deliveries_Take",
            "Diplomat",
            "Director",
            "Factory_Manager",
            "Fitting_Manager",
            "Hangar_Query_1",
            "Hangar_Query_2",
            "Hangar_Query_3",
            "Hangar_Query_4",
            "Hangar_Query_5",
            "Hangar_Query_6",
            "Hangar_Query_7",
            "Hangar_Take_1",
            "Hangar_Take_2",
            "Hangar_Take_3",
            "Hangar_Take_4",
            "Hangar_Take_5",
            "Hangar_Take_6",
            "Hangar_Take_7",
            "Junior_Accountant",
            "Personnel_Manager",
            "Project_Manager",
            "Rent_Factory_Facility",
            "Rent_Office",
            "Rent_Research_Facility",
            "Security_Officer",
            "Skill_Plan_Manager",
            "Starbase_Defense_Operator",
            "Starbase_Fuel_Technician",
            "Station_Manager",
            "Trader"
          ],
          "type": "string"
        },
        "type": "array",
        "uniqueItems": true
      },
      "role_type": {
        "enum": [
          "grantable_roles",
          "grantable_roles_at_base",
          "grantable_roles_at_hq",
          "grantable_roles_at_other",
          "roles",
          "roles_at_base",
          "roles_at_hq",
          "roles_at_other"
        ],
        "type": "string"
      }
    },
    "required": [
      "character_id",
      "changed_at",
      "issuer_id",
      "role_type",
      "old_roles",
      "new_roles"
    ],
    "type": "object"
  },
  "type": "array"
}