---
title: "POST /{stack}/adminconfig/v2/indexes"
method: POST
path: "/{stack}/adminconfig/v2/indexes"
tags: ["Indexes"]
---

# POST /{stack}/adminconfig/v2/indexes

`POST /{stack}/adminconfig/v2/indexes`

create index on the stack

## Path parameters

- `stack` string, required

## Request body

- IndexInfo
  - `datatype` string
  - `maxDataSizeMB` integer
  - `mdlIndex` boolean
  - `name` string, required
  - `searchableDays` integer
  - `selfStorageBucketPath` string
  - `splunkArchivalRetentionDays` integer

## Response `202`

successfully submitted a new index

- IndexInfo
  - `datatype` string
  - `maxDataSizeMB` integer
  - `mdlIndex` boolean
  - `name` string, required
  - `searchableDays` integer
  - `selfStorageBucketPath` string
  - `splunkArchivalRetentionDays` integer

## Other responses

- `default` — unexpected error

---

[API](https://skmtc.dev/splunk/apis/splunk-cloud-admin-api.md) · [All operations](https://skmtc.dev/splunk/apis/splunk-cloud-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/splunk/splunk-cloud-admin-api/revisions/65903649d1c2/schema)
