Merge To Main

Merges the given branch to the “main” branch. Throws if the template or branch doesn’t exist. Throws if the latest commit doesn’t match the provided id. Throws if you merge on an archived template.

Path parameters

templateRidstringRequired

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
branchNamestringRequired

If “main”, the request will throw.

messagestringRequired
latestCommitOnMainstringOptional

If present, will validate that the latest commit matches this id, and otherwise throw CommitConflict.

Response

This endpoint returns an object.
ridstring
metadataobject
commitobject
chartslist of objects
layoutobject
contentobject