Skip to main content

Download a GitLab project for an assessment

POST 

/api/v1/integrations/gitlab/projects/:project_id/fetch

Download a GitLab project as a zip archive and store it under the assessment.

The archive is fetched using the connector's OAuth token, uploaded to object storage under assessments/<assessment_mongo_id>/source/gitlab-<project_id>-<branch>.zip, and the storage key is returned so the caller can register the source on the assessment draft.

  • Scope required: integrations:manage.
  • Rate-limit tier: integrations_fetch (10/hour per user).
  • The target assessment must belong to the caller's organization.
  • 404 if the caller has no active GitLab connector.
  • 500 if the object storage upload fails.

Request

Responses

Successful Response