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
      • This is a special file extension that removes other extensions
      • E.g. apple-app-site-association.noext.txt will be uploaded as apple-app-site-association
      • This is used for uploader tools that have trouble with extensionless files

Required Scope: site_config:write

Path parameters

site_idstringRequired

Unique identifier for a Site

Request

This endpoint expects an object.
fileNamestringOptional

The name of the file

fileDatastringOptional

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