Reset a project branch.

If branch === main, the branch is reset to target_config_sha. Otherwise, the branch is reset to main.

put/v0/projects/{project}/branches/{branch}/reset

Request

  • Base URL: v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL: v1/v0/projects/{project}/branches/{branch}/reset
  • Auth: none declared

Path parameters

projectstring required
branchstring required

Query parameters

target_config_shastring

The commit SHA to reset the main branch to. Required if resetting the main branch; disallowed otherwise.

Response

success

object'project_branch' required
branchstring required

Branch name

orgstring required
projectstring required

Project name

Changes

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      removed subschema #2 subschema #3 from the /////// response property oneOf list for the response status

    • info

      added the required property ////////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ////////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ////////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ////////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ////////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ////////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ////////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ////////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ////////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ////////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ////////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ////////// to the response with the status

    • info

      added the required property ///////// to the response with the status

    • info

      added the required property ////////// to the response with the status

    • info

      added the required property ///////// to the response with the status