{
"components": { "schemas": { "request": { "post": { "type": "object", "xml": { "name": "/" }, "properties": { "mobile": { "type": "object", "required": ["model", "manufacturer", "serial_number"], "properties": { "$ref": "mobile.json#/components/schemas/request_properties" } } } }, "put": { "type": "object", "xml": { "name": "/" }, "properties": { "mobile": { "type": "object", "properties": { "$ref": "mobile.json#/components/schemas/request_properties" } } } } }, "request_properties": { "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" }, "status": { "$ref": "../../components.json#/components/request/schemas/association_by_name" }, "device_type": { "type": "string", "example": "Mobile Device" }, "manufacturer": { "type": "string", "example": "Apple" }, "model": { "$ref": "../../components.json#/components/common/schemas/number_or_string" }, "company_issued": { "type": "boolean", "example": true }, "serial_number": { "$ref": "../../components.json#/components/common/schemas/number_or_string" }, "imei": { "$ref": "../../components.json#/components/common/schemas/number_or_string" }, "user": { "$ref": "../../components.json#/components/request/schemas/association_by_email" }, "technical_contact": { "$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": { "mobile": { "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" }, "device_type": { "type": "string", "example": "Mobile Device" }, "manufacturer": { "type": "string", "example": "Apple" }, "model": { "type": "string", "example": "1" }, "company_issued": { "type": "boolean", "example": true }, "serial_number": { "$ref": "../../components.json#/components/common/schemas/number_or_string" }, "imei": { "$ref": "../../components.json#/components/common/schemas/number_or_string" }, "user": { "$ref": "../../components.json#/components/response/schemas/user_details" }, "technical_contact": { "$ref": "../../components.json#/components/response/schemas/group_details" }, "custom_fields_values": { "$ref": "../../components.json#/components/response/schemas/custom_fields_values" } } } } } } }
}