> ## 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.

# CreateServiceAttribute



## OpenAPI

````yaml openapi/api_v1_config_openapi3_DOCUMENTATION_ONLY.json POST /api/v1/config/services/{service_slug}/attributes
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/services/{service_slug}/attributes:
    post:
      tags:
        - ConfigV1
      operationId: CreateServiceAttribute
      parameters:
        - in: path
          name: service_slug
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfigV1CreateServiceAttributeBody'
        required: true
        x-originalParamName: body
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/configv1CreateServiceAttributeResponse'
          description: A successful response.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiError'
          description: An unexpected error response.
components:
  schemas:
    ConfigV1CreateServiceAttributeBody:
      properties:
        dry_run:
          type: boolean
        service_attribute:
          $ref: '#/components/schemas/configv1ServiceAttribute'
      type: object
    configv1CreateServiceAttributeResponse:
      properties:
        service_attribute:
          $ref: '#/components/schemas/configv1ServiceAttribute'
        service_slug:
          type: string
      type: object
    apiError:
      properties:
        message:
          description: An error message describing what went wrong.
          type: string
      type: object
    configv1ServiceAttribute:
      properties:
        created_at:
          description: >-
            Timestamp of when the service attributes were created. Cannot be set
            by clients.
          format: date-time
          readOnly: true
          type: string
        description:
          description: A description of the service.
          type: string
        name:
          description: |-
            The name of the service. You can modify this value after the service
            attributes are created.
          type: string
        notification_policy_slug:
          description: The slug of the notification policy for the associated service.
          type: string
        service_slug:
          description: The slug of the service.
          type: string
        team_slug:
          description: The slug of the team that the associated service belongs to.
          type: string
        updated_at:
          description: >-
            Timestamp of when the service attributes were updated. Cannot be set
            by clients.
          format: date-time
          readOnly: true
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: Chronosphere API token
      in: header
      name: API-Token
      type: apiKey

````