Bitbucket Data Center API Client
    Preparing search index...

    Interface EditFilePayload

    Payload for PUT /rest/api/latest/projects/{key}/repos/{slug}/browse/{path}.

    interface EditFilePayload {
        branch: string;
        content: string;
        message: string;
        sourceBranch?: string;
        sourceCommitId: string;
    }
    Index

    Properties

    branch: string

    Branch to update

    content: string

    New file content

    message: string

    Commit message

    sourceBranch?: string

    Source branch for cross-branch edits

    sourceCommitId: string

    Latest commit ID on the branch — required to detect conflicts