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

# Api Deliveries Save



## OpenAPI

````yaml /api/openapi.json post /api/deliveries
openapi: 3.1.0
info:
  description: >-
    Environment-aware APIs for Platinur configuration, integrations, operations,
    promotions, scheduling, monitoring, and assistant tasks.
  title: Platinur Control Plane API
  version: 1.0.0-rc4
servers:
  - description: Local Platinur control-plane API
    url: http://localhost:8080
security: []
paths:
  /api/deliveries:
    post:
      tags:
        - Control Plane
      summary: Api Deliveries Save
      operationId: api_deliveries_save_api_deliveries_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeliveryRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    DeliveryRequest:
      description: >-
        Create-or-update payload for a delivery (POST /api/deliveries). ``id``
        present means

        update; absent means create. Structural validation only —
        cadence/channel/metrics

        business rules (caps, weekday range, Slack-not-configured) are enforced
        by

        deliveries_model.normalize_delivery so the 400 message stays in one
        place.
      properties:
        cadence:
          $ref: '#/components/schemas/DeliveryCadenceRequest'
          default:
            day: 1
            kind: weekly
            time: '08:00'
            weekday: 0
        channel:
          $ref: '#/components/schemas/DeliveryChannelRequest'
          default:
            kind: email
            recipients: []
        enabled:
          default: true
          title: Enabled
          type: boolean
        environment:
          default: prod
          title: Environment
          type: string
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        metrics:
          default: []
          items:
            type: string
          title: Metrics
          type: array
        name:
          default: ''
          title: Name
          type: string
      title: DeliveryRequest
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    DeliveryCadenceRequest:
      properties:
        day:
          default: 1
          title: Day
          type: integer
        kind:
          default: weekly
          title: Kind
          type: string
        time:
          default: '08:00'
          title: Time
          type: string
        weekday:
          default: 0
          title: Weekday
          type: integer
      title: DeliveryCadenceRequest
      type: object
    DeliveryChannelRequest:
      properties:
        kind:
          default: email
          title: Kind
          type: string
        recipients:
          default: []
          items:
            type: string
          title: Recipients
          type: array
      title: DeliveryChannelRequest
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````