{
"components": { "schemas": { "request": { "post": { "type": "object", "xml": { "name": "/" }, "properties": { "other_asset": { "type": "object", "required": ["name", "manufacturer", "asset_type"], "properties": { "$ref": "other_asset.json#/components/schemas/request_properties" } } } }, "put": { "type": "object", "xml": { "name": "/" }, "properties": { "other_asset": { "type": "object", "properties": { "$ref": "other_asset.json#/components/schemas/request_properties" } } } } }, "request_properties": { "name": { "type": "string", "example": "Asset Name" }, "description": { "type": "string", "example": "description" }, "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" }, "asset_id": { "$ref": "../../components.json#/components/common/schemas/number_or_string" }, "asset_type": { "$ref": "../../components.json#/components/request/schemas/association_by_name", "example": { "name": "Printer" } }, "status": { "$ref": "../../components.json#/components/request/schemas/association_by_name", "example": { "name": "Operational" } }, "manufacturer": { "type": "string", "example": "Apple" }, "ip_address": { "type": "string", "example": "0.0.0.0" }, "model": { "$ref": "../../components.json#/components/common/schemas/number_or_string" }, "serial_number": { "$ref": "../../components.json#/components/common/schemas/number_or_string" }, "user": { "$ref": "../../components.json#/components/request/schemas/association_by_email" }, "owner": { "$ref": "../../components.json#/components/request/schemas/association_by_email" }, "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" } }, "response": { "type": "object", "xml": { "name": "/", "wrapped": true }, "properties": { "other_asset": { "type": "object", "properties": { "id": { "$ref": "../../components.json#/components/response/schemas/id" }, "name": { "type": "string", "example": "Apple 1" }, "description": { "type": "string", "example": "description" }, "site": { "$ref": "../../components.json#/components/response/schemas/site_response" }, "department": { "$ref": "../../components.json#/components/response/schemas/department_response" }, "status": { "type": "string", "example": "Operational" }, "asset_type": { "$ref": "../../components.json#/components/response/schemas/asset_type" }, "asset_id": { "type": "string", "example": "1" }, "manufacturer": { "type": "string", "example": "Apple" }, "model": { "type": "string", "example": "1" }, "ip": { "type": "string", "example": "0.0.0.0" }, "serial_number": { "$ref": "../../components.json#/components/common/schemas/number_or_string" }, "user": { "$ref": "../../components.json#/components/response/schemas/group_details" }, "owner": { "$ref": "../../components.json#/components/response/schemas/group_details" }, "custom_fields_values": { "$ref": "../../components.json#/components/response/schemas/custom_fields_values" } } } } } } }
}