---
title: "ScriptTagInput"
description: "ScriptTagInput"
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/inputs/script-tag-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/online-store/inputs/script-tag-input.md'
---
# ScriptTagInput

ScriptTagInput

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Type Signature

`ScriptTagInput`

## Input Fields

* `src`

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

  远程脚本的 URL。

* `displayScope`

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

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

## Schema Definition

```graphql
input ScriptTagInput { 
	src: URL
	displayScope: ScriptTagDisplayScope 
}
```

## Argument from

* [Mutation](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/online-store/mutations/script-tag-create.md).scriptTagCreate

  创建一个新的脚本标记。

* [Mutation](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/online-store/mutations/script-tag-update.md).scriptTagUpdate

  更新脚本标记。

## 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)。

