cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
257
Views
0
Helpful
0
Replies

Using JSON in stead of XML in POST/PUT to uccx adminapi

Hello

I've been trying to use Content-Type: application/json in POST and PUT requests to the adminapi but get an error. Sending the data as xml works fine. Anyone been able to use json content on the adminapi?

Example:

data = {

"Files" : {

"Document" : {

"Folder" : {

"path" : "/en_US/",

"FolderName" : "Test"

}

}

}

}

POST request to http://UCCX-Server/adminapi/document

errorMessage: '\nException Description: An error occurred marshalling the object\nInternal Exception: org.xml.sax.SAXParseException; cvc-complex-type.2.4.b: The content of element \'Files\' is not complete. One of \'{Script, Prompt, Grammar, Document, AARDocument}\' is expected.',

0 Replies 0