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

NameDescriptionInRequiredSchema
db_branch_name

The DBBranchName matches the pattern {db_name}:{branch_name}.

path✅string
job_id

The id of the migration job

path✅string

Get Pgroll Job Status

GET
https://{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";