public static MozuClient<com.mozu.api.contracts.content.Document> createDocumentClient(com.mozu.api.DataViewMode dataViewMode, com.mozu.api.contracts.content.Document document, String documentListName, String responseFields) throws Exception
	{
		MozuUrl url = com.mozu.api.urls.content.documentlists.DocumentUrl.createDocumentUrl(documentListName, responseFields);
		String verb = "POST";
		Class<?> clz = com.mozu.api.contracts.content.Document.class;
		MozuClient<com.mozu.api.contracts.content.Document> mozuClient = (MozuClient<com.mozu.api.contracts.content.Document>) MozuClientFactory.getInstance(clz);
		mozuClient.setVerb(verb);
		mozuClient.setResourceUrl(url);
		mozuClient.setBody(document);
		mozuClient.addHeader(Headers.X_VOL_DATAVIEW_MODE ,dataViewMode.toString());
		return mozuClient;

	}
public static MozuClient < com . mozu . api . contracts . content . Document > createDocumentClient ( com . mozu . api . DataViewMode dataViewMode , com . mozu . api . contracts . content . Document document , String documentListName , String responseFields ) throws Exception { MozuUrl url = com . mozu . api . urls . content . documentlists . DocumentUrl . createDocumentUrl ( documentListName , responseFields ) ; String verb = "POST" ; Class < ? > clz = com . mozu . api . contracts . content . Document . class ; MozuClient < com . mozu . api . contracts . content . Document > mozuClient = ( MozuClient < com . mozu . api . contracts . content . Document > ) MozuClientFactory . getInstance ( clz ) ; mozuClient . setVerb ( verb ) ; mozuClient . setResourceUrl ( url ) ; mozuClient . setBody ( document ) ; mozuClient . addHeader ( Headers . X_VOL_DATAVIEW_MODE , dataViewMode . toString ( ) ) ; return mozuClient ; }
<p><pre><code>
MozuClient<com.mozu.api.contracts.content.Document> mozuClient=CreateDocumentClient(dataViewMode,  document,  documentListName,  responseFields);
client.setBaseAddress(url);
client.executeRequest();
Document document = client.Result();
</code></pre></p>
@param documentListName Name of content documentListName to delete
@param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss.
@param document The document properties that define the content used by the content management system (CMS).
@return Mozu.Api.MozuClient <com.mozu.api.contracts.content.Document>
@see com.mozu.api.contracts.content.Document
@see com.mozu.api.contracts.content.Document