Query meiafield definition
GET https://{handle}.myshopline.com/admin/openapi/v20240601/metafield_definition.json
handle
: The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com
, the store handle is open001
.metafieldDefinitionQuery
Query Parameters
- id string requiredThe definition ID of the metafield.Example:
71351007083
Request Headers
- Content-Type requiredThe value of this field is fixed to
application/json; charset=utf-8
- Authorization string requiredThe access token for the API. Please refer to App authorization to obtain the access token, and then put the obtained access token into the API request header in Bearer Token.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Response
- 200
- 401
- 404
- 429
For more information about status codes, see Http status code.
Response Headers
traceId
traceId
Response Body
definitionobject
Metafield Definitionaccessobject
Access settings that apply to each metafield that belongs to the metafield definition.admin stringAdmin access settings for metafields under this definition, supports: PRIVATE, MERCHANT_READ, MERCHANT_READ_WRITEExample:MERCHANT_READ
created_at stringThe creation time of the meta field definition.Example:2023-05-31T15:18:49+08:00
description stringA description of the metafield definition.Example:This is the description for the Product Care Guidelines metafield
id longThe definition ID of the metafield.Example:71351007083
key stringA unique identifier for a metafield definition within its namespace.Example:product-guide2
name stringDefine human-readable metafield names.Example:Product Care Guide
namespace stringA metafield defines a container for a set of metafields that will be related.Example:app--70303--seotest
owner_resource stringThe meta field defines the resource object type to attach to: products, customers, orders, pages, variants, collections articles, blogs, draft_orders, smart_collections locations, images, shopExample:products
type stringThe type of data that each metafield that belongs to the metafield definition will store. See the list of supported types.Example:multi_line_text_field
updated_at stringThe last update time of the meta field definition.Example:2023-05-31T15:18:49+08:00
API Explorer
Debugger
Examples
Was this article helpful to you?
Error loading component.