Skip to main content
Version: 202607

Update script tag

PUT 

/openapi/2026-07/script_tags/:script_tag_id

Updating an existing script tag in a shop's storefront.

Request

Path Parameters

    script_tag_id stringrequired

    Script tag ID

Bodyrequired

    script_tag objectrequired

    Script tag

    srcstringrequired

    Script file URL

    display_scopestring

    Display scope

    event_typestring

    Tag type to identify the script usage

Responses

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    script_tag object

    Script tag

    idstring

    Created script tag ID

    display_scopestring

    Indicates where the script tag is applied

    srcstring

    URL of the script file

    event_typestring

    The tag type, as specified during creation

    created_atstring

    The timestamp when the script tag was created. Format: YYYY-MM-DDTHH:mm:ssZ

    updated_atstring

    The timestamp when the script tag was last updated. Format: YYYY-MM-DDTHH:mm:ssZ