Get pgroll migration job status
https://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/pgroll/jobs/job_id
Get pgroll migration job status for the specified job id
Expected parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
db_branch_name | The DBBranchName matches the pattern | path | ✅ | string |
job_id | The id of the migration job | path | ✅ | string |
Get Pgroll Job Status
GEThttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/pgroll/jobs/job_id
Responses
type PgRollJobStatus = {
/**
* The id of the migration job
*/
jobID: string;
/**
* The type of the migration job
*/
type: PgRollJobType;
/**
* The status of the migration job
*/
status: PgRollJobStatus;
/**
* The error message associated with the migration job
*/
error?: string;
};
type PgRollJobType = "apply" | "start" | "complete" | "rollback";
type PgRollJobStatus = "pending" | "in_progress" | "completed" | "failed";
type PgRollJobStatus = {
id?: string;
message: string;
};
{
"message": "invalid API key"
}
type PgRollJobStatus = {
id?: string;
message: string;
};
type PgRollJobStatus = void;
type PgRollJobStatus = void;