All versions ->

Copy link to request setupRun requestRun
POST/v2/sites/{site_id}/snippet

Upsert snippet

Adds a snippet to a Square Online site or updates the existing snippet on the site. API Reference ->

Sign in
Sandbox is not supported for this endpoint.SandboxProduction

Access Tokens

Sign in to populate your access tokens from the developer dashboard Sign in

Link to section

Parameters

site_id

string

Required

A string that contains no characters. In an API request this value will appear as ''. Can be used to remove a field's value.

Link to section

Body

snippet

Required

POST /v2/sites/{site_id}/snippet

Response

// No response received yet.