POST /v2/content/folders/{folderId}/import
Schedule an asynchronous import of content inside an existing folder with the given identifier. Import requests can be used to create or update content within a folder. Content items need to have a unique name within their folder. If there is already a content item with the same name in the folder, you can set the overwrite
parameter to true
to overwrite existing content items. By default, the overwrite
parameter is set to false
, where the import will fail if a content item with the same name already exist. Keep in mind when importing large folders that there is a limit of 1000 content objects that can be imported at once. If you want to import more than 1000 content objects, then be sure to split the import into batches of 1000 objects or less.
Servers
- https://api.au.sumologic.com/api/
- https://api.ca.sumologic.com/api/
- https://api.de.sumologic.com/api/
- https://api.eu.sumologic.com/api/
- https://api.fed.sumologic.com/api/
- https://api.jp.sumologic.com/api/
- https://api.kr.sumologic.com/api/
- https://api.in.sumologic.com/api/
- https://api.sumologic.com/api/
- https://api.us2.sumologic.com/api/
Path parameters
Name | Type | Required | Description |
---|---|---|---|
folderId |
String | Yes |
The identifier of the folder to import into. Identifiers from the Library in the Sumo user interface are provided in decimal format which is incompatible with this API. The identifier needs to be in hexadecimal format. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
isAdminMode |
String | No |
Set this to "true" if you want to perform the request as a Content Administrator. |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
overwrite |
Boolean | No |
Set this to "true" to overwrite a content item if the name already exists. Default value: false |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
name |
String | Yes |
The name of the item. |
type |
String | Yes |
The content item type. Note:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.