apicheats.dev Cheat sheet Raw .md
POST

Try POST /user/migrations — GitHub API

GitHub playground

Start a user migration

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Body application/json

9 body fields
  • lock_repositories · optional · boolean — Lock the repositories being migrated at the start of the migration
  • exclude_metadata · optional · boolean — Indicates whether metadata should be excluded and only git source should be included for the migration.
  • exclude_git_data · optional · boolean — Indicates whether the repository git data should be excluded from the migration.
  • exclude_attachments · optional · boolean — Do not include attachments in the migration
  • exclude_releases · optional · boolean — Do not include releases in the migration
  • exclude_owner_projects · optional · boolean — Indicates whether projects owned by the organization or users should be excluded.
  • org_metadata_only · optional · boolean — Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).
  • exclude · optional · string[] — Exclude attributes from the API response to improve performance
  • repositories · required · string[] — Request body field repositories.