asset

Create a site asset

This endpoint is only available to certain sites.

post/sites/{site_id}/assets

Request

  • Base URL
    https://api.netlify.com/api/v1
  • URL
    https://api.netlify.com/api/v1/sites/{site_id}/assets
  • Auth
    OAuth 2
    Implicit: https://app.netlify.com/authorize

Query parameters

namestring required
sizeinteger required
content_typestring required
visibilitystring

Response

Created

Changes

No recorded changes to this operation across all 65 revisions of this API.