Skip to content

Import GitHub gists into GitLab snippets

POST
/api/v4/import/github/gists

Imports personal GitHub gists into GitLab snippets. You can import gists with up to 10 files. GitHub gists with more than 10 files are skipped. You should manually migrate these GitHub gists. If any gists cannot be imported, an email is sent with a list of gists that were not imported.

Media type application/json
object
personal_access_token
required

GitHub personal access token

string
nullable
Example generated
{
"personal_access_token": "example"
}

Accepted

Bad Request

Unauthorized

Unprocessable Entity

Too Many Requests