cURL
curl --request POST \ --url https://{tenant}/api/apis/migrate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "mode": "dryRun", "apiIDs": [ "api123", "api456" ], "abortOnFailure": true }'
{ "success": { "count": 123, "apiIDs": [ "<string>" ], "stagedAPIs": [ { "classicAPIID": "<string>", "oasAPIID": "<string>" } ], "definitions": [ { "apiID": "<string>", "baseAPI": {}, "versions": [ {} ] } ] }, "failure": { "count": 123, "errors": [ { "apiID": "<string>", "message": [ "<string>" ] } ] }, "skipped": { "count": 123, "apis": [ { "apiID": "<string>", "message": "<string>", "key": "already_migrated" } ] }, "abortedOnFailure": true }
Migrate APIs from Tyk Classic to Tyk OAS format. The endpoint supports different migration modes including dry run, staging, promotion and direct migration.
dryRun
stage
promote
direct
Show child attributes
Was this page helpful?