Describing Request Body. The POST, PUT and PATCH requests can have the request body (payload), such as JSON or XML data. ... schema that describes the body data type and structure. The data type is usually an object, but can also be a primitive (such as a string or number) or an array. Optional description .