{

"components": {
  "schemas": {
    "request": {
      "post": {
        "type": "object",
        "xml": { "name": "/" },
        "properties": {
          "site": {
            "type": "object",
            "required": ["name", "location"],
            "properties": { "$ref": "site.json#/components/schemas/request_properties" }
          }
        }
      },
      "put": {
        "type": "object",
        "xml": { "name": "/" },
        "properties": {
          "site": {
            "type": "object",
            "properties": { "$ref": "site.json#/components/schemas/request_properties" }
          }
        }
      }
    },
    "request_properties": {
      "name": { "type": "string", "example": "Austin TX, USA" },
      "location": { "type": "string", "example": "AUS" },
      "description": { "type": "string", "example": "Description Austin TX, USA" },
      "time_zone": { "type": "string", "example": "Texas" },
      "language": { "type": "string", "minLength": 2, "maxLength": 2, "example": "en" },
      "manager_id": {
        "$ref": "../../components.json#/components/common/schemas/association_by_id",
        "description": "user only, not group"
      },
      "default_assignee_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
      "business_record": {
        "type": "object",
        "properties": { "id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" } }
      }
    },
    "response": {
      "type": "object",
      "xml": { "name": "/", "wrapped": true },
      "properties": {
        "site": {
          "type": "object",
          "required": ["name"],
          "properties": {
            "id": { "$ref": "../../components.json#/components/response/schemas/id" },
            "name": { "type": "string", "example": "Austin TX, USA" },
            "location": { "type": "string", "example": "AUS" },
            "description": { "type": "string", "example": "Description Austin TX, USA" },
            "time_zone": { "type": "string", "example": "Texas" },
            "language": { "type": "string", "minLength": 2, "maxLength": 2, "example": "en" },
            "business_record": { "type": "string", "example": "1" }
          }
        }
      }
    }
  }
}

}