> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chronosphere.io/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateBucket



## OpenAPI

````yaml openapi/api_v1_config_openapi3_DOCUMENTATION_ONLY.json POST /api/v1/config/buckets
openapi: 3.0.3
info:
  description: >

    The Config API provides standard HTTP/JSON REST endpoints for creating,
    reading,

    updating, deleting, and listing configurable Chronosphere resources.


    Use this link to download the raw Swagger specification:

    <a href="/api/v1/config/swagger.json">/api/v1/config/swagger.json</a>
  title: Config V1 API
  version: v1
servers:
  - url: https://{tenant}.chronosphere.io
    variables:
      tenant:
        default: tenant
        description: tenant ID assigned by the service provider
security:
  - ApiKeyAuth: []
tags:
  - name: ConfigV1
paths:
  /api/v1/config/buckets:
    post:
      tags:
        - Bucket
      operationId: CreateBucket
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/configv1CreateBucketRequest'
        required: true
        x-originalParamName: body
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/configv1CreateBucketResponse'
          description: A successful response containing the created Bucket.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: Cannot create the Bucket because the request is invalid.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: >-
            Cannot create the Bucket because there is a conflict with an
            existing Bucket.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: An unexpected error response.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/genericError'
          description: An undefined error response.
components:
  schemas:
    configv1CreateBucketRequest:
      properties:
        bucket:
          allOf:
            - $ref: '#/components/schemas/configv1Bucket'
          description: The Bucket to create.
        dry_run:
          description: >-
            If `true`, validates the specified configuration without creating
            the Bucket. If the specified configuration is valid, the endpoint
            returns a partial response without the Bucket. If the specified
            configuration is invalid, the endpoint returns an error.
          type: boolean
      type: object
    configv1CreateBucketResponse:
      properties:
        bucket:
          $ref: '#/components/schemas/configv1Bucket'
      type: object
    apiError:
      properties:
        message:
          description: An error message describing what went wrong.
          type: string
      type: object
    genericError:
      additionalProperties: true
      type: object
    configv1Bucket:
      properties:
        created_at:
          description: Timestamp of when the Bucket was created. Cannot be set by clients.
          format: date-time
          readOnly: true
          type: string
        description:
          description: Optional description of the bucket.
          type: string
        labels:
          additionalProperties:
            type: string
          description: Optional labels marking the bucket.
          type: object
        name:
          description: >-
            The name of the Bucket. You can modify this value after the Bucket
            is created.
          type: string
        notification_policy_slug:
          description: >-
            Slug of the notification policy used by default for monitors in this
            bucket.

            This is optional if the bucket does not contain monitors or all of
            its monitors explicitly reference a policy.

            This policy takes precedence over a bucket-owned notification
            policy.

            This does not override the policy used when a monitor explicitly
            references a policy.
          type: string
        slug:
          description: >-
            The unique identifier of the Bucket. If a `slug` isn't provided, one
            is generated based on the `name` field. You can't modify this field
            after the Bucket is created.
          type: string
        team_slug:
          description: Optional slug of the team the bucket belongs to.
          type: string
        updated_at:
          description: >-
            Timestamp of when the Bucket was last updated. Cannot be set by
            clients.
          format: date-time
          readOnly: true
          type: string
      required:
        - name
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: Chronosphere API token
      in: header
      name: API-Token
      type: apiKey

````