Import Content

Import Content
Import content for current user from uploaded file

The "Content-Type" of the request is multipart/form-data. If the force option is set to true, content will be overwritten. By default the flag is true.
Note: Content Type INTEGRATIONS is no longer supported. The imported Authentication Sources, Http Proxies and Outbound Settings may have missing details. Complete them in their respective sections.

Request
URI
POST
https://{api_host}/suite-api/api/content/operations/import
COPY
Query Parameters
boolean
force
Optional
Constraints: default: true

True to force solution content overwrite

Header Parameters
string
EncryptionPassword
Optional

Key for decrypting sensitive information


Request Body
File of type(s) multipart/form-data
Optional
{
    "contentFile": "string"
}
string
contentFile
Required  

Multipart file.
Note: Content Type INTEGRATIONS is no longer supported

Authentication
This operation uses the following authentication methods.
Responses
202

The import of content has been accepted

Returns content-import of type(s) application/json
"{\n  \"fileName\" : \"contentFile\",\n  \"force\" : false,\n  \"id\" : \"bb1f4c64-b1e9-4a3f-a051-790d926342d2\",\n  \"links\" : [ {\n    \"href\" : \"/suite-api/api/content/operations/import\",\n    \"rel\" : \"RELATED\",\n    \"name\" : \"ImportStatusCheckURL\",\n    \"description\" : \"Status of the last import operation\"\n  } ]\n}"
string
fileName
Required  

The file containing details of content to be imported

boolean
force
Required  

The value for force content update

string
id
Optional

The generated id of operation

array of object
links
Optional

Represents a HTTP 'link' element.
It is implicit that all the link tags support http 'GET' method.


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: multipart/form-data' -d '{"contentFile":"string"}' https://{api_host}/suite-api/api/content/operations/import