Bitbucket Data Center API Client
    Preparing search index...

    Interface RefSyncRequest

    Payload for POST /rest/sync/latest/projects/{key}/repos/{slug}/synchronize (manually synchronizes a diverged or orphaned ref).

    • 'MERGE' — merge upstream into the ref (optionally with context.commitMessage)
    • 'REBASE' — rebase the ref onto upstream
    • 'DISCARD' — discard local changes, resetting the ref to upstream
    interface RefSyncRequest {
        action: "MERGE" | "REBASE" | "DISCARD";
        context?: { commitMessage?: string };
        refId: string;
    }
    Index

    Properties

    Properties

    action: "MERGE" | "REBASE" | "DISCARD"
    context?: { commitMessage?: string }
    refId: string

    The ref to synchronize (e.g. 'refs/heads/main')