Skip to main content
POST
Take a brand from its files

Authorizations

Authorization
string
header
required

An API key: ab_...

Path Parameters

slug
string
required

Brand slug

Body

application/json
files
object
required

The brand's files by path in its folder: brand.yaml, rules/.yaml, pages/.yaml. Others are left alone

assets
object

The files under assets/ the brand's files point at: path to asset id, or to the SHA-256 of its bytes (upload first)

commit
string

The commit the files are at, when they are the repository's: recorded as agreed, when the brand has a source

Required string length: 1 - 100
message
string

The commit's message: its first line names the version the import makes

Maximum string length: 2000
dryRun
boolean

Check and merge, answer what would change, write nothing

merge
boolean

Keep what changed here since the source last agreed (default); false takes the files whole

publish

Publish after, with this note (true: none). Takes share

Response

What changed

data
object
required