{
"components": { "schemas": { "request": { "post": { "type": "object", "xml": { "name": "/" }, "properties": { "user": { "type": "object", "required": ["name", "email"], "properties": { "$ref": "user.json#/components/schemas/request_properties" } } } }, "put": { "type": "object", "xml": { "name": "/" }, "properties": { "user": { "type": "object", "properties": { "$ref": "user.json#/components/schemas/request_properties" } } } } }, "request_properties": { "name": { "type": "string", "example": "John Doe" }, "title": { "type": "string", "example": "Support Agent" }, "email": { "type": "string", "format": "email", "example": "john.doe@email.com" }, "disabled": { "type": "boolean", "example": false }, "phone": { "type": "string", "example": "+10000000" }, "mobile_phone": { "type": "string", "example": "+10000000" }, "role": { "$ref": "../../components.json#/components/request/schemas/association_by_name" }, "site": { "$ref": "../../components.json#/components/request/schemas/association_by_name" }, "department": { "$ref": "../../components.json#/components/request/schemas/association_by_name" }, "reports_to": { "$ref": "../../components.json#/components/request/schemas/reports_to" }, "custom_fields_values": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values" } }, "response": { "type": "object", "xml": { "name": "/", "wrapped": true }, "properties": { "user": { "type": "object", "properties": { "id": { "$ref": "../../components.json#/components/response/schemas/id" }, "name": { "type": "string", "example": "John Doe" }, "title": { "type": "string", "example": "Support Agent" }, "email": { "type": "string", "format": "email", "example": "john.doe@email.com" }, "phone": { "type": "string", "example": "+10000000" }, "mobile_phone": { "type": "string", "example": "+10000000" }, "role": { "$ref": "../../components.json#/components/response/schemas/role" }, "site": { "$ref": "../../components.json#/components/response/schemas/site_response" }, "department": { "$ref": "../../components.json#/components/response/schemas/department_response" }, "custom_fields_values": { "$ref": "../../components.json#/components/response/schemas/custom_fields_values" }, "avatar": { "$ref": "../../components.json#/components/response/schemas/avatar" }, "reports_to": { "$ref": "../../components.json#/components/response/schemas/group_details" }, "group_ids": { "$ref": "../../components.json#/components/common/schemas/ids_array" }, "created_at": { "type": "string", "example": "2020-01-01T00:00:00.000+00:00" } } } } } } }
}