Represents an UpsertSnippet
response. The response can include either snippet
or errors
.
Upsert Snippet Response
Name | Type | Tags | Description |
---|---|---|---|
errors |
List of Error |
Optional | Any errors that occurred during the request. |
snippet |
Snippet |
Optional | 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. |
{
"snippet": {
"content": "<script>var js = 1;</script>",
"created_at": "2021-03-11T25:40:09Z",
"id": "snippet_5d178150-a6c0-11eb-a9f1-437e6a2881e7",
"site_id": "site_278075276488921835",
"updated_at": "2021-03-11T25:40:09Z"
}
}