You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Knowledge Advance: Create content with attachment

Question
6
Views
0
Comments
edited Mar 16, 2017 2:38PM in Integrations and APIs

Content

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!