---
title: "ScriptTag"
description: "ScriptTag"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/online-store/objects/script-tag'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/online-store/objects/script-tag.md'
---
# ScriptTag

ScriptTag

- **Required Scopes:** `read_script_tags`
- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`ScriptTag`

## Fields

* `createdAt`

  [Date](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/date.md)

  创建脚本标记的日期和时间。

* `displayScope`

  [ScriptTagDisplayScope](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/online-store/enums/script-tag-display-scope.md)

  在线商店中应包含脚本的一个或多个页面。

* `id`

  [ID](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/id.md)

  全局唯一的 ID。

* `src`

  [URL](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/url.md)

  远程脚本的 URL。

* `updatedAt`

  [Date](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/date.md)

  脚本标记上次更新的日期和时间。

## Schema Definition

```graphql
type ScriptTag { 
	createdAt: Date
	displayScope: ScriptTagDisplayScope
	id: ID
	src: URL
	updatedAt: Date 
}
```

## Field from

* [ScriptTagUpdatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/online-store/objects/script-tag-update-payload.md).scriptTag

  已更新的脚本标记。

* [ScriptTagCreatePayload](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/online-store/objects/script-tag-create-payload.md).scriptTag

  创建的脚本标记。

* [ScriptTagEdge](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/online-store/objects/script-tag-edge.md).node

  ScriptTagEdge 末尾的项目。

* [ScriptTagConnection](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/online-store/objects/script-tag-connection.md).nodes

  ScriptTagEdge中包含的节点的列表。

* [Query](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/online-store/queries/script-tag.md).scriptTag

  通过ID查找脚本标记资源。

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

