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

# Post apiv1courses announcements



## OpenAPI

````yaml /api/openapi.json post /api/v1/courses/{courseId}/announcements
openapi: 3.1.0
info:
  title: Tessera API
  version: '1'
servers:
  - url: https://tessera.edstratumlabs.ai
    description: Production
security: []
paths:
  /api/v1/courses/{courseId}/announcements:
    post:
      tags:
        - courses
      operationId: createAnnouncement
      parameters:
        - name: courseId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  minLength: 1
                body:
                  type: string
                pinned:
                  type: boolean
                publish:
                  type: boolean
                aiDraft:
                  $ref: '#/components/schemas/Provenance'
              required:
                - title
                - body
                - pinned
                - publish
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Announcement'
        '400':
          description: API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
        '401':
          description: API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
        '403':
          description: API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
        '404':
          description: API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
        '409':
          description: API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
        '429':
          description: API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
      security:
        - bearerAuth: []
components:
  schemas:
    Provenance:
      type: object
      properties:
        model:
          type: string
          minLength: 1
        task:
          type: string
          enum:
            - brief
            - outline
            - lesson-draft
            - block-regenerate
            - announcement
            - feedback
            - alt-text
            - rewrite
            - link-text
            - element
            - tutor
            - tutor-summary
            - agent
        generatedAt:
          type: string
          minLength: 1
        sources:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                minLength: 1
              name:
                type: string
                minLength: 1
            required:
              - id
              - name
            additionalProperties: false
        summary:
          type: string
      required:
        - model
        - task
        - generatedAt
        - sources
        - summary
      additionalProperties: false
    Announcement:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        courseId:
          type: string
          minLength: 1
        courseTitle:
          type: string
          minLength: 1
        authorId:
          type: string
          minLength: 1
        authorName:
          type: string
          minLength: 1
        authorInitials:
          type: string
          minLength: 1
        title:
          type: string
          minLength: 1
        body:
          type: string
        pinned:
          type: boolean
        status:
          type: string
          enum:
            - draft
            - published
        origin:
          type: string
          enum:
            - human
            - ai
        aiState:
          anyOf:
            - type: string
              enum:
                - draft
                - kept
            - type: 'null'
        provenance:
          anyOf:
            - $ref: '#/components/schemas/Provenance'
            - type: 'null'
        publishedAt:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
        createdAt:
          type: string
          minLength: 1
        read:
          type: boolean
      required:
        - id
        - courseId
        - courseTitle
        - authorId
        - authorName
        - authorInitials
        - title
        - body
        - pinned
        - status
        - origin
        - aiState
        - provenance
        - publishedAt
        - createdAt
        - read
      additionalProperties: false
    ApiErrorBody:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - unauthenticated
                - forbidden
                - not-found
                - invalid
                - conflict
                - not-ready
                - ai-disabled
                - ai-failed
                - rate-limited
                - too-large
                - unsupported
            message:
              type: string
            details: {}
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Scoped tsk_… API token or Access JWT

````