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

# Propose Branch

> Propose branch changes for review.

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url http://localhost:8080/api/v2/environments/{environmentKey}/branches/{key} \
    --header 'Content-Type: application/json' \
    --header 'Accept: application/json' \
    --data '{
    "title": "<title>",
    "body": "<body>",
    "draft": false
  }'
  ```
</RequestExample>


## OpenAPI

````yaml https://raw.githubusercontent.com/flipt-io/flipt/refs/heads/v2/rpc/v2/environments/openapi.yaml POST /api/v2/environments/{environmentKey}/branches/{key}
openapi: 3.0.3
info:
  title: Management API
  description: Flipt Management REST API
  version: 2.9.0
servers: []
security: []
tags:
  - name: EnvironmentsService
paths:
  /api/v2/environments/{environmentKey}/branches/{key}:
    post:
      tags:
        - EnvironmentsService
      description: Propose changes from a branch environment.
      operationId: proposeEnvironment
      parameters:
        - name: environmentKey
          in: path
          description: The environment identifier, e.g. 'production'.
          required: true
          schema:
            type: string
        - name: key
          in: path
          description: The branch key.
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProposeEnvironmentRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvironmentProposalDetails'
components:
  schemas:
    ProposeEnvironmentRequest:
      type: object
      properties:
        environmentKey:
          type: string
          description: The environment identifier, e.g. 'production'.
        key:
          type: string
          description: The branch key.
        title:
          type: string
          description: The title of the proposal.
        body:
          type: string
          description: The body of the proposal.
        draft:
          type: boolean
          description: The draft status of the proposal.
      description: The request message for proposing changes from a branch environment.
    EnvironmentProposalDetails:
      type: object
      properties:
        url:
          type: string
          description: The URL of the proposal in the source control management system.
        state:
          enum:
            - PROPOSAL_STATE_UNKNOWN
            - PROPOSAL_STATE_OPEN
            - PROPOSAL_STATE_MERGED
            - PROPOSAL_STATE_CLOSED
          type: string
          description: The state of the proposal.
          format: enum
      description: The details of a proposal.

````

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