{

"components": {
  "schemas": {
    "request": {
      "post": {
        "type": "object",
        "xml": { "name": "/" },
        "properties": {
          "change": {
            "type": "object",
            "required": ["name", "change_type"],
            "properties": { "$ref": "change.json#/components/schemas/request_properties" }
          }
        }
      },
      "put": {
        "type": "object",
        "xml": { "name": "/" },
        "properties": {
          "change": {
            "type": "object",
            "properties": { "$ref": "change.json#/components/schemas/request_properties" }
          }
        }
      }
    },
    "request_properties": {
      "name": { "type": "string", "example": "Change Name" },
      "change_type": { "type": "integer", "example": 1 },
      "description": { "$ref": "../../components.json#/components/common/schemas/string_or_null" },
      "site": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
      "department": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
      "site_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
      "department_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
      "state": { "type": "string", "example": "New" },
      "requester": { "$ref": "../../components.json#/components/request/schemas/association_by_email" },
      "assignee": { "$ref": "../../components.json#/components/request/schemas/association_by_email" },
      "priority": { "type": "string", "example": "High" },
      "change_plan": { "type": "string", "example": "change plan" },
      "rollback_plan": { "type": "string", "example": "rollback plan" },
      "test_plan": { "type": "string", "example": "test plan" },
      "planned_start_at": { "type": "string", "example": "2025-01-01 00:00" },
      "planned_end_at": { "type": "string", "example": "2025-01-01 05:00" },
      "add_to_tag_list": { "type": "string", "example": "tag1" },
      "remove_from_tag_list": { "type": "string", "example": "tag2" },
      "tag_list": { "type": "string", "example": "tag1" },
      "custom_fields_values": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values" },
      "custom_fields_values_attributes": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values_attributes" },
      "incidents": { "$ref": "../../components.json#/components/request/schemas/attachment_numbers" },
      "problems": { "$ref": "../../components.json#/components/request/schemas/attachment_numbers" },
      "releases": { "$ref": "../../components.json#/components/request/schemas/attachment_numbers" },
      "configuration_item_ids": { "$ref": "../../components.json#/components/common/schemas/ids_array" }
    },
    "response": {
      "type": "object",
      "xml": { "name": "/", "wrapped": true },
      "properties": {
        "change": {
          "type": "object",
          "properties": {
            "id": { "$ref": "../../components.json#/components/response/schemas/id" },
            "name": { "type": "string", "example": "Change Name" },
            "description": { "type": "string", "example": "description" },
            "site": { "$ref": "../../components.json#/components/response/schemas/site_response" },
            "department": { "$ref": "../../components.json#/components/response/schemas/department_response" },
            "state": { "type": "string", "example": "New" },
            "priority": { "type": "string", "example": "High" },
            "change_plan": { "type": "string", "example": "change plan" },
            "rollback_plan": { "type": "string", "example": "rollback plan" },
            "test_plan": { "type": "string", "example": "test plan" },
            "planned_start_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
            "planned_end_at": { "type": "string", "example": "2025-01-01T05:00:00.000+01:00" },
            "created_by": { "$ref": "../../components.json#/components/response/schemas/user_details" },
            "assignee": { "$ref": "../../components.json#/components/response/schemas/group_details" },
            "requester": { "$ref": "../../components.json#/components/response/schemas/user_details" },
            "custom_fields_values": { "$ref": "../../components.json#/components/response/schemas/custom_fields_values" },
            "tags": { "$ref": "../../components.json#/components/response/schemas/tags" },
            "created_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
            "incidents": { "$ref": "../../components.json#/components/response/schemas/response_attachments" },
            "changes": { "$ref": "../../components.json#/components/response/schemas/response_attachments" },
            "configuration_items": { "$ref": "../../components.json#/components/response/schemas/response_attachments" }
          }
        }
      }
    }
  }
}

}