Square · Schema
UpsertSnippetRequest
Represents an `UpsertSnippet` request.
BookingLocationSquareRestaurantCatalogCheckoutCustomersDisputesE-CommerceFinancial TechnologyGift CardsInventoryInvoicingLaborLoyaltyMerchantsOrderPaymentsPoint-of-SaleRefundsRetailSubscriptionTeamWebhookPayment ProcessingPayment Terminals
Properties
| Name | Type | Description |
|---|---|---|
| snippet | object | The snippet for the site. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/square/main/json-schema/square-upsert-snippet-request-schema.json",
"title": "UpsertSnippetRequest",
"description": "Represents an `UpsertSnippet` request.",
"x-generated": "2026-10-12",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/square-snippets-api-openapi.yml#/components/schemas/UpsertSnippetRequest",
"type": "object",
"x-release-status": "PUBLIC",
"required": [
"snippet"
],
"properties": {
"snippet": {
"$ref": "#/$defs/Snippet",
"description": "The snippet for the site."
}
},
"$defs": {
"Snippet": {
"type": "object",
"description": "Represents the snippet that is added to a Square Online site. The snippet code is injected into the `head` element of all pages on the site, except for checkout pages.",
"x-release-status": "PUBLIC",
"required": [
"content"
],
"properties": {
"id": {
"type": "string",
"description": "The Square-assigned ID for the snippet.",
"maxLength": 48,
"readOnly": true
},
"site_id": {
"type": "string",
"description": "The ID of the site that contains the snippet.",
"readOnly": true
},
"content": {
"type": "string",
"description": "The snippet code, which can contain valid HTML, JavaScript, or both.",
"minLength": 1,
"maxLength": 65535
},
"created_at": {
"type": "string",
"description": "The timestamp of when the snippet was initially added to the site, in RFC 3339 format.",
"readOnly": true
},
"updated_at": {
"type": "string",
"description": "The timestamp of when the snippet was last updated on the site, in RFC 3339 format.",
"readOnly": true
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/square-upsert-snippet-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.