Skip to main content

Check out Port for yourself 

Cancel a migration

POST 

https://api.port.io/v1/migrations/:migration_id/cancel

This route allows you to cancel a running migration in your Port organization.

Request

Path Parameters

    migration_id stringrequired

    The identifier of the migration you want to cancel.

Body

    reasonstring

    The reason for cancelling the migration.

Responses

Default Response

Authorization: Authorization

name: Authorizationtype: apiKeyin: header
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.port.io/v1/migrations/:migration_id/cancel");
request.Headers.Add("Authorization", "<Authorization>");
var content = new StringContent("{\n \"reason\": \"string\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.port.io
Auth
Parameters
— pathrequired
Body
{
  "reason": "string"
}
ResponseClear

Click the Send API Request button above and see the response here!