A brand as files, keeping the repository's
POST
/api/v1/brands/{slug}/files/export
const url = 'http://localhost:3000/api/v1/brands/example/files/export';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"previous":{"additionalProperty":"example"},"assets":"ids"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/brands/example/files/export \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "previous": { "additionalProperty": "example" }, "assets": "ids" }'As GET …/files, given the repository’s files as they are in previous: a file that says the same as what would be written is answered as it was written, comments and all, so a sync commits only what changed.
Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
Brand slug
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
previous
The repository’s files as they are: one that says the same is kept as written, comments and all
object
key
additional properties
string
assets
Files: give every asset the brand points at a path under assets/, to add them to the repository
string
Responses
Section titled “Responses”The files
Media typeapplication/json
object
data
required
object
brand
required
string
files
required
object
key
additional properties
string
assets
required
Each path under assets/ the files name, with its asset: fetch it from url, or compare by sha256
object
key
additional properties
object
id
required
string format: uuid
filename
required
string
mime
required
string
size
required
integer
sha256
required
string
url
required
string format: uri
source
required
Any of:
null
Examplegenerated
{ "data": { "brand": "example", "files": { "additionalProperty": "example" }, "assets": { "additionalProperty": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "filename": "example", "mime": "example", "size": 1, "sha256": "example", "url": "https://example.com" } }, "source": { "remote": "example", "branch": "example", "path": "example", "commit": "example", "syncedAt": "2026-04-15T12:00:00Z", "pending": true, "files": 1 } }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}