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

# Post in a change request's talk

> Anyone who can read the repo. Needs the `publish` scope.



## OpenAPI

````yaml /api-reference/openapi.json post /projects/{owner}/{slug}/change-requests/{number}/talk
openapi: 3.1.0
info:
  title: Patch API
  version: 1.0.0
  description: >-
    The public API behind patch.gg, the desktop app and pch. Changes within v1
    are additive only. Errors are { error: { code, message, details } }; branch
    on code.
servers:
  - url: https://patch.gg/api/v1
security: []
paths:
  /projects/{owner}/{slug}/change-requests/{number}/talk:
    post:
      tags:
        - Change requests
      summary: Post in a change request's talk
      description: Anyone who can read the repo. Needs the `publish` scope.
      parameters:
        - schema:
            type: string
            example: patch
          required: true
          name: owner
          in: path
        - schema:
            type: string
            example: demo-mod
          required: true
          name: slug
          in: path
        - schema:
            type: integer
            minimum: 1
            example: 12
          required: true
          name: number
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                body:
                  type: string
                  minLength: 1
                  maxLength: 20000
              required:
                - body
      responses:
        '201':
          description: Posted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TalkPost'
        '308':
          description: Renamed; follow the Location header
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Not signed in
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearer: []
components:
  schemas:
    TalkPost:
      type: object
      properties:
        id:
          type: string
          format: uuid
        author:
          type:
            - string
            - 'null'
          description: Their username; null once the account is gone
        author_image:
          type:
            - string
            - 'null'
          description: Their picture, or null to show the figure grown from their username
        via:
          type: string
          enum:
            - session
            - api_key
          description: >-
            session: posted signed in. api_key: posted with an API key, such as
            through pch or an agent.
        body:
          type: string
        created_at:
          type: string
          format: date-time
        can_delete:
          type: boolean
          description: 'Whether you can delete it: it''s yours, or you''re in the repo''s org.'
      required:
        - id
        - author
        - author_image
        - via
        - body
        - created_at
        - can_delete
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: version_exists
            message:
              type: string
            details: {}
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key (pch_...) or the token from pch login.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.