List the files of a site
The project's files at the draft revision (or revision), with sizes and hashes. glob (for example **/*.astro) and under narrow the list. Pass a hash as expected_hash when you edit that file.
GET/v1/sites/{site_id}/files
Requires sites:read.
Keep the hash of a file you plan to change and send it as expected_hash when you change files.
Authorizations
Authorizationbearerin headerrequiredPath parameters
site_idstringrequiredThe site's id, or its slug (the address before .atelier201.page).
Query parameters
revisionstringlength: 40–40 charsA Git commit id (40 hex characters) of the site's repository.
understringlength: ≤ 300 charsOnly files under this folder, e.g. src/content/blog.
globstringlength: ≤ 200 charsOnly files matching this glob, e.g. **/.astro or src/pages/.astro. A pattern without / matches a file name anywhere.
Response
List the files of a site
dataobjectrequiredrequest_idstringrequiredPossible codes: invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobjectrequiredrequest_idstringrequiredPossible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_credits
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_scope, feature_not_available, admin_required
errorobjectrequiredrequest_idstringrequiredPossible codes: resource_not_found
errorobjectrequiredrequest_idstringrequiredPossible codes: conflict, result_not_ready, idempotency_key_reused
errorobjectrequiredrequest_idstringrequiredPossible codes: result_expired
errorobjectrequiredrequest_idstringrequiredPossible codes: request_too_large
errorobjectrequiredrequest_idstringrequiredPossible codes: request_too_large_for_plan
errorobjectrequiredrequest_idstringrequiredPossible codes: rate_limited
errorobjectrequiredrequest_idstringrequiredPossible codes: internal_error
errorobjectrequiredrequest_idstringrequiredPossible codes: service_unavailable
errorobjectrequiredrequest_idstringrequired