Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Knowledge Advance: Create content with attachment

$
0
0

Topic by daniela giannini

I'm trying to load a content with attachment using the REST API "Create content with file attachments" URI /km/api/v1/content

Using SOAP UI I tried the following:

URI: /km/api/v1/content

Media Type: multipart/form-data

JSON:


    {
    "isForEdit": true,
    "views": [{
        "recordId": "102250357f021f015a24ca166e007c1c",
        "referenceKey": "WINDTRE",
        "name": "WindTre"
    }],
    "locale": {
    "recordId": "it_IT"
    },

    "contentType": {
        "recordId": "1022107594a9510153b30670a00075f2",
        "referenceKey": "MANUALS",
        "name": "Allegati"
    },
    "priority":"PRIORITY_0",
    "published":false,
     "checkedOut":false,
    "xml": "<MANUALS><TITLE><![CDATA[TEST Telepass Mobile]]></TITLE><DOCUMENT SIZE=\"112640\"><![CDATA[Telepass_Mobile.doc]]></DOCUMENT></MANUALS>"
    }

As attachment I put the file using the SOAP UI features attachment/add attachments.

I get an error as response that says "no file present in the request". I see in the HTTP request the binary file so....

Have you ever tried to load content with attachment?

Thanks

Daniela


Viewing all articles
Browse latest Browse all 2504

Trending Articles