API Explorer
You are viewing an old version of the API

Upsert snippet

Adds a snippet to a Square Online site or updates the existing snippet on the site.

Open in API Reference

Sign In

Parameters

string

Body

Snippet
Request
cURL
  • cURL
  • Ruby
  • Python
  • C#
  • Java
  • PHP
  • Node.js
curl https://connect.squareup.com/v2/sites/{site_id}/snippet \
  -X POST \
  -H 'Square-Version: 2021-10-20' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json'
Response
// No response received yet.

Share feedback

Thanks for visiting the Square API documentation. What's on your mind?