Skip to main content

Uploads site for a specified subdomain.

POST 

/api/site

Warning: Old files will be removed after successful upload. The cleanup task is configured with CLEAN_OBSOLETE_INTERVAL env If upload fails then old files will be preserved. If upload fails on th stage of extracting zips then new subdomain will be associated with user

Upload guard checks amount of uploads available for user. The guard is configured with MAX_SITES_PER_USER env.

Request

Header Parameters

    x-subdomain stringrequired

    x-subdomain header represents name of subdomain to call action on

Body

required
    archive binaryrequired

Responses

Site was successfully uploaded

Loading...