Branches

Deletes a branch and the commits only it holds. There is no undo, which is why this asks for projects:manage where creating a branch asks for projects:write.

Refused with BRANCH_IN_USE while anyone is connected to the branch. Pass force=true to disconnect them instead; their in-memory work is saved to the branch first, and then goes with it.

main cannot be deleted.

delete/api/v2/projects/{projectId}/branches/{branch}

Request

  • Base URL
    https://davinci-app.com
  • Auth
    HTTP bearer

Query parameters

forceboolean

Disconnect anyone using the branch instead of refusing.

Response

Branch deleted.

deletedstring required
disconnectedUsersinteger

Clients disconnected by a forced delete.

Changes

    • info

      the response property const value false was added for the status

    • info

      the response property const value false was added for the status

    • info

      the response property const value false was added for the status

    • info

      the response property const value false was added for the status

    • info

      the response property const value false was added for the status

    • info

      the response property const value false was added for the status

    • info

      the response property const value false was added for the status

    • info

      the response property const value false was added for the status

    • info

      the response property const value false was added for the status

    • info

      endpoint added