GitLab CI/CD group_import_and_export API

Operations about group_import_and_exports

Operations 7

GET /api/v4/groups/{id}/export/download Download export #
POST /api/v4/groups/{id}/export Start export #
POST /api/v4/groups/{id}/export_relations Start relations export #
GET /api/v4/groups/{id}/export_relations/download Download relations export #
GET /api/v4/groups/{id}/export_relations/status Relations export status #
POST /api/v4/groups/import/authorize Workhorse authorize the group import upload #
POST /api/v4/groups/import Create a new group import #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/gitlab-ci-group-import-and-export-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

gitlab-ci-group-import-and-export-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitLab access_requests Group Import And Export API
  version: v4
  description: Operations related to access requests
servers:
- url: https://gitlab.com
tags:
- name: group_import_and_export
  description: Operations about group_import_and_exports
paths:
  /api/v4/groups/{id}/export/download:
    get:
      summary: Download export
      description: This feature was introduced in GitLab 12.5.
      parameters:
      - in: path
        name: id
        description: The ID of a group
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Download export
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '503':
          description: Service unavailable
      tags:
      - group_import_and_export
      operationId: getApiV4GroupsIdExportDownload
  /api/v4/groups/{id}/export:
    post:
      summary: Start export
      description: This feature was introduced in GitLab 12.5.
      parameters:
      - in: path
        name: id
        description: The ID of a group
        required: true
        schema:
          type: string
      responses:
        '202':
          description: Start export
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '429':
          description: Too many requests
        '503':
          description: Service unavailable
      tags:
      - group_import_and_export
      operationId: postApiV4GroupsIdExport
  /api/v4/groups/{id}/export_relations:
    post:
      summary: Start relations export
      description: This feature was introduced in GitLab 13.12
      parameters:
      - in: path
        name: id
        description: The ID of a group
        required: true
        schema:
          type: string
      responses:
        '202':
          description: Start relations export
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '503':
          description: Service unavailable
      tags:
      - group_import_and_export
      operationId: postApiV4GroupsIdExportRelations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postApiV4GroupsIdExportRelations'
        required: true
  /api/v4/groups/{id}/export_relations/download:
    get:
      summary: Download relations export
      description: This feature was introduced in GitLab 13.12
      parameters:
      - in: path
        name: id
        description: The ID of a group
        required: true
        schema:
          type: string
      - in: query
        name: relation
        description: Group relation name
        required: true
        schema:
          type: string
      - in: query
        name: batched
        description: Whether to download in batches
        required: false
        schema:
          type: boolean
      - in: query
        name: batch_number
        description: Batch number to download
        required: false
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Download relations export
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '503':
          description: Service unavailable
      tags:
      - group_import_and_export
      operationId: getApiV4GroupsIdExportRelationsDownload
  /api/v4/groups/{id}/export_relations/status:
    get:
      summary: Relations export status
      description: This feature was introduced in GitLab 13.12
      parameters:
      - in: path
        name: id
        description: The ID of a group
        required: true
        schema:
          type: string
      - in: query
        name: relation
        description: Group relation name
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Relations export status
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/API_Entities_BulkImports_ExportStatus'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '503':
          description: Service unavailable
      tags:
      - group_import_and_export
      operationId: getApiV4GroupsIdExportRelationsStatus
  /api/v4/groups/import/authorize:
    post:
      summary: Workhorse authorize the group import upload
      description: This feature was introduced in GitLab 12.8
      responses:
        '201':
          description: Workhorse authorize the group import upload
      tags:
      - group_import_and_export
      operationId: postApiV4GroupsImportAuthorize
  /api/v4/groups/import:
    post:
      summary: Create a new group import
      description: This feature was introduced in GitLab 12.8
      responses:
        '202':
          description: Create a new group import
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '400':
          description: Bad request
        '503':
          description: Service unavailable
      tags:
      - group_import_and_export
      operationId: postApiV4GroupsImport
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                path:
                  type: string
                  description: Group path
                name:
                  type: string
                  description: Group name
                file:
                  type: string
                  description: The group export file to be imported
                  format: binary
                parent_id:
                  type: integer
                  format: int32
                  description: The ID of the parent group that the group will be imported into. Defaults to the current user's namespace.
                organization_id:
                  type: integer
                  format: int32
                  default: {}
                  description: 'The ID of the organization that the group will be part of. '
              required:
              - path
              - name
              - file
components:
  schemas:
    API_Entities_BulkImports_ExportBatchStatus:
      type: object
      properties:
        status:
          type: string
          enum:
          - started
          - finished
          - failed
          example: started
        batch_number:
          type: integer
          format: int32
          example: 1
        objects_count:
          type: integer
          format: int32
          example: 100
        error:
          type: string
          example: Error message
        updated_at:
          type: string
          format: date-time
          example: '2012-05-28T04:42:42-07:00'
      required:
      - status
      - batch_number
      - objects_count
      - error
      - updated_at
    postApiV4GroupsIdExportRelations:
      type: object
      properties:
        batched:
          type: boolean
          description: Whether to export in batches
      description: Start relations export
    API_Entities_BulkImports_ExportStatus:
      type: object
      properties:
        relation:
          type: string
          example: issues
        status:
          type: string
          enum:
          - pending
          - started
          - finished
          - failed
          example: started
        error:
          type: string
          example: Error message
        updated_at:
          type: string
          format: date-time
          example: '2012-05-28T04:42:42-07:00'
        batched:
          type: boolean
          example: true
        batches_count:
          type: integer
          format: int32
          example: 2
        total_objects_count:
          type: integer
          format: int32
          example: 100
        batches:
          $ref: '#/components/schemas/API_Entities_BulkImports_ExportBatchStatus'
      required:
      - relation
      - status
      - error
      - updated_at
      - batched
      - batches_count
      - total_objects_count
      description: API_Entities_BulkImports_ExportStatus model
  securitySchemes:
    access_token_header:
      type: apiKey
      name: PRIVATE-TOKEN
      in: header
    access_token_query:
      type: apiKey
      name: private_token
      in: query