# Sumo Logic contentManagement API

**Canonical:** https://apis.io/apis/sumo-logic/sumo-logic-contentmanagement-api/  
**Provider:** Sumo Logic — https://apis.io/providers/sumo-logic/  
**Base URL:** https://api.sumologic.com/api  
**Documentation:** https://help.sumologic.com/docs/api/

Sumo Logic contentManagement API is one of 54 APIs that [Sumo Logic](https://apis.io/providers/sumo-logic/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Content Management. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and a getting-started guide.

Content management API. You can export, import, delete and copy content in your organization’s Library. For more information, see [Library](https://help.sumologic.com/?cid=5173). You can perform the request as a Content Administrator by using the `isAdminMode` parameter. For more information, see [Admin Mode](https://help.sumologic.com/docs/manage/content-sharing/admin-mode). <br/> <br/> ### Example The following example uses API endpoints in the US1 deployment. Sumo Logic has several deployments that are assigned depending on the geographic location and the date an account is created. For details determining your account's deployment, see [API endpoints](https://help.sumologic.com/?cid=3011). The [Content Import API](#operation/beginAsyncImport) can be used to create or update a Search, Scheduled Search, or Dashboard. Here is an example creating a Scheduled Search: 1. Get the identifier of your `Personal` folder. ```bash curl -X GET -u "<accessId>:<accessKey>" https://api.sumologic.com/api/v2/content/folders/personal ``` Find the identifier of your `Personal` folder in the response. ```json { ... "id": "0000000006A2E86F", <---- "name": "Personal", "itemType": "Folder", ... } ``` You can use [getFolder](#operation/getFolder), [getAdminRecommededFolder](#operation/getAdminRecommendedFolderAsync), or [getGlobalFolder](#operation/getGlobalFolderAsync) endpoints to traverse the content tree and find the identifier of any folder you want to manage. 2. Use the [Content Import API](#operation/beginAsyncImport) to create a new Scheduled Search inside your `Personal` folder. ```bash curl -X POST -u "<accessId>:<accessKey>" -H "Content-Type: application/json" -d @search.json https://api.sumologic.com/api/v2/content/folders/0000000006A2E86F/import ``` The data file `search.json` in the above command has the following `SavedSearchWithScheduleSyncDefinition` object. ```json // file: search.json { "type": "SavedSearchWithScheduleSyncDefinition", "name": "demo-scheduled-search", "description": "Runs every hour with timerange of 15m and sends email notifications", "search": { "queryText": "\"error\" and \"warn\"", "defaultTimeRange": "-15m", "byReceiptTime": false, "viewName": "", "viewStartTime": null, "queryParameters": [] }, "searchSchedule": { "cronExpression": "0 0/15 * * * ? *", "displayableTimeRange": "-15m", "parseableTimeRange": { "from": { "relativeTime": "-15m", "type": "RelativeTimeRangeBoundary" }, "to": null, "type": "BeginBoundedTimeRange" }, "timeZone": "America/Los_Angeles", "threshold": null, "notification": { "taskType": "EmailSearchNotificationSyncDefinition", "toList": [ "ops@acme.org" ], "subjectTemplate": "Search Results: {{SearchName}}", "includeQuery": true, "includeResultSet": true, "includeHistogram": true, "includeCsvAttachment": false }, "muteErrorEmails": false, "scheduleType": "1Hour", "parameters": [] } } ``` The response of above request will have the job identifier that you can use to track the status of the import job. ```json { "id": "74DC17FA765C7443" } ``` 3. Use the job identifier from the import request to get the [status](#operation/getAsyncImportStatus) of the import job. ```bash curl -X GET -u "<accessId>:<accessKey>" https://api.sumologic.com/api/v2/content/folders/0000000006A2E86F/import/74DC17FA765C7443/status ``` If you are importing a large item, you might have to wait for the import job to finish. The following is an example response from a completed job. ```json { "status": "Success", "statusMessage": null, "error": null } ```

## Machine-readable artifacts (5)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/sumo-logic/refs/heads/main/openapi/sumo-logic-contentmanagement-api-openapi.yml
- **Documentation** — https://help.sumologic.com/docs/api/
- **Reference** — https://api.sumologic.com/docs/
- **GettingStarted** — https://help.sumologic.com/docs/api/about-apis/getting-started/
- **GraphQL** — https://raw.githubusercontent.com/api-evangelist/sumo-logic/refs/heads/main/graphql/sumo-logic-graphql.md

## Other Sumo Logic APIs (12)

- [Sumo Logic accessKeyManagement API](https://apis.io/apis/sumo-logic/sumo-logic-accesskeymanagement-api/)
- [Sumo Logic accountManagement API](https://apis.io/apis/sumo-logic/sumo-logic-accountmanagement-api/)
- [Sumo Logic appManagement API](https://apis.io/apis/sumo-logic/sumo-logic-appmanagement-api/)
- [Sumo Logic appManagementV2 API](https://apis.io/apis/sumo-logic/sumo-logic-appmanagementv2-api/)
- [Sumo Logic archiveManagement API](https://apis.io/apis/sumo-logic/sumo-logic-archivemanagement-api/)
- [Sumo Logic budgetManagement API](https://apis.io/apis/sumo-logic/sumo-logic-budgetmanagement-api/)
- [Sumo Logic connectionManagement API](https://apis.io/apis/sumo-logic/sumo-logic-connectionmanagement-api/)
- [Sumo Logic contentPermissions API](https://apis.io/apis/sumo-logic/sumo-logic-contentpermissions-api/)
- [Sumo Logic dashboardManagement API](https://apis.io/apis/sumo-logic/sumo-logic-dashboardmanagement-api/)
- [Sumo Logic dataDeletionRules API](https://apis.io/apis/sumo-logic/sumo-logic-datadeletionrules-api/)
- [Sumo Logic dataMaskingManagement API](https://apis.io/apis/sumo-logic/sumo-logic-datamaskingmanagement-api/)
- [Sumo Logic dynamicParsingRuleManagement API](https://apis.io/apis/sumo-logic/sumo-logic-dynamicparsingrulemanagement-api/)

## Tags

Content Management

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/sumo-logic/sumo-logic-contentmanagement-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/sumo-logic/.
