{
"components": { "schemas": { "request": { "post": { "type": "object", "xml": { "name": "/" }, "properties": { "group": { "type": "object", "required": ["name"], "properties": { "$ref": "group.json#/components/schemas/request_properties" } } } }, "put": { "type": "object", "xml": { "name": "/" }, "properties": { "group": { "type": "object", "properties": { "$ref": "group.json#/components/schemas/request_properties" } } } } }, "request_properties": { "name": { "type": "string", "example": "Group Name" }, "description": { "type": "string", "example": "Group Description" }, "superviser_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" }, "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": { "group": { "type": "object", "required": ["name"], "properties": { "id": { "$ref": "../../components.json#/components/response/schemas/id" }, "name": { "type": "string", "example": "Group Name" }, "description": { "type": "string", "example": "Group Description" }, "is_user": { "type": "boolean", "example": false }, "reports_to": { "$ref": "../../components.json#/components/response/schemas/group_details" }, "avatar": { "$ref": "../../components.json#/components/response/schemas/avatar" }, "send_notifications": { "type": "boolean", "example": true }, "memberships": { "type": "array", "items": { "type": "object", "properties": { "id": { "$ref": "../../components.json#/components/response/schemas/id" }, "user": { "type": "string", "example": "John Doe" } } } } } } } } } }
}