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

# Set Service Github

> Set GitHub repo on a specific service.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json put /v1/apps/{app_id}/github/services/{service_name}
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/github/services/{service_name}:
    put:
      tags:
        - github
      summary: Set Service Github
      description: Set GitHub repo on a specific service.
      operationId: github_set_service_github
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: App Id
        - name: service_name
          in: path
          required: true
          schema:
            type: string
            title: Service Name
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServiceGitHubRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceGitHubInfo'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    ServiceGitHubRequest:
      properties:
        repo_full_name:
          type: string
          title: Repo Full Name
        default_branch:
          type: string
          title: Default Branch
          default: main
      type: object
      required:
        - repo_full_name
      title: ServiceGitHubRequest
      description: Request to set GitHub repo on a specific service.
    ServiceGitHubInfo:
      properties:
        name:
          type: string
          title: Name
        repo_full_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Repo Full Name
        default_branch:
          type: string
          title: Default Branch
          default: main
        installation_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Installation Id
      type: object
      required:
        - name
      title: ServiceGitHubInfo
      description: Per-service GitHub repo info in connection response.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

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