Set a well-known file

PUT

Upload a supported well-known file to a site.

The current restrictions on well-known files are as follows:

  • Each file must be smaller than 100kb
  • Less than 30 total files
  • Have one of the following file extensions (or no extension): .txt, .json, .noext
.noext

.noext is a special file extension that removes other extensions. For example, apple-app-site-association.noext.txt will be uploaded as apple-app-site-association. Use this extension for tools that have trouble uploading extensionless files.

Enterprise Only
This endpoint requires an Enterprise workspace.

Required scope: site_config:write

Path parameters

site_idstringRequired

Unique identifier for a Site

Request

This endpoint expects an object.
fileNamestringRequired

The name of the file

fileDatastringRequired

The contents of the file

contentTypeenumOptionalDefaults to application/json
Allowed values: application/jsontext/plain

The content type of the file. Defaults to application/json

Errors

Built with