Skip to content

Commit 31b1bd2

Browse files
authored
Update exporting-migration-data-from-githubcom.md
1 parent d8acf24 commit 31b1bd2

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

content/admin/user-management/migrating-data-to-and-from-your-enterprise/exporting-migration-data-from-githubcom.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ shortTitle: Export data from GitHub.com
3333

3434
To export repository data from {% data variables.product.prodname_dotcom_the_website %}, use <a href="/rest/reference/migrations" class="dotcom-only">the Migrations API</a>.
3535

36-
The Migrations API is currently in a preview period, which means that the endpoints and parameters may change in the future. To access the Migrations API, you must provide a custom [media type](/rest/overview/media-types) in the `Accept` header: `application/vnd.github.wyandotte-preview+json`. The examples below include the custom media type.
37-
36+
The Migrations API is currently in a preview period, which means that the endpoints and parameters may change in the future.
3837
## Generating a migration archive
3938

4039
{% data reusables.enterprise_migrations.locking-repositories %}
@@ -45,8 +44,9 @@ The Migrations API is currently in a preview period, which means that the endpoi
4544
* Your access token for authentication.
4645
* A [list of the repositories](/rest/reference/repos#list-organization-repositories) you want to migrate:
4746
```shell
48-
curl -H "Authorization: token <em>GITHUB_ACCESS_TOKEN</em>" -X POST \
49-
-H "Accept: application/vnd.github.wyandotte-preview+json" \
47+
curl -H "Authorization: token <em>GITHUB_ACCESS_TOKEN</em>" \
48+
-X POST \
49+
-H "Accept: application/vnd.github.v3+json" \
5050
-d'{"lock_repositories":true,"repositories":["<em>orgname</em>/<em>reponame</em>", "<em>orgname</em>/<em>reponame</em>"]}' \
5151
https://api.github.com/orgs/<em>orgname</em>/migrations
5252
```
@@ -60,7 +60,7 @@ The Migrations API is currently in a preview period, which means that the endpoi
6060
* The unique `id` of the migration:
6161
```shell
6262
curl -H "Authorization: token <em>GITHUB_ACCESS_TOKEN</em>" \
63-
-H "Accept: application/vnd.github.wyandotte-preview+json" \
63+
-H "Accept: application/vnd.github.v3+json" \
6464
https://api.github.com/orgs/<em>orgname</em>/migrations/<em>id</em>
6565
```
6666

@@ -75,7 +75,7 @@ The Migrations API is currently in a preview period, which means that the endpoi
7575
* The unique `id` of the migration:
7676
```shell
7777
curl -H "Authorization: token <em>GITHUB_ACCESS_TOKEN</em>" \
78-
-H "Accept: application/vnd.github.wyandotte-preview+json" \
78+
-H "Accept: application/vnd.github.v3+json" \
7979
-L -o migration_archive.tar.gz \
8080
https://api.github.com/orgs/<em>orgname</em>/migrations/<em>id</em>/archive
8181
```
@@ -84,8 +84,9 @@ The Migrations API is currently in a preview period, which means that the endpoi
8484
* Your access token for authentication.
8585
* The unique `id` of the migration:
8686
```shell
87-
curl -H "Authorization: token <em>GITHUB_ACCESS_TOKEN</em>" -X DELETE \
88-
-H "Accept: application/vnd.github.wyandotte-preview+json" \
87+
curl -H "Authorization: token <em>GITHUB_ACCESS_TOKEN</em>" \
88+
-X DELETE \
89+
-H "Accept: application/vnd.github.v3+json" \
8990
https://api.github.com/orgs/<em>orgname</em>/migrations/<em>id</em>/archive
9091
```
9192
{% data reusables.enterprise_migrations.ready-to-import-migrations %}

0 commit comments

Comments
 (0)