https://shopify.com/admin/api/2020-04/themes/{theme_id}/assets.jsonhttps://shopify.dev/docs/admin-api/rest/reference/online-store/asset#update-2020-04
theme_id
The source URL of an image. Include in the body of the PUT request to upload the image to Shopify.
The path within the theme to an existing asset. Include in the body of the PUT request to create a duplicate asset.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}1curl --request PUT \2 --url 'https://shopify.com/admin/api/2020-04/themes/{theme_id}/assets.json' \3 --header 'accept: application/json' \4 --header 'content-type: application/json'1{2 "success": true,3 "data": {4 "id": "abc123",5 "created_at": "2025-01-01T00:00:00Z"6 }7}https://shopify.com/admin/api/2020-04/themes/{theme_id}/assets.jsonhttps://shopify.dev/docs/admin-api/rest/reference/online-store/asset#update-2020-04
theme_id
The source URL of an image. Include in the body of the PUT request to upload the image to Shopify.
The path within the theme to an existing asset. Include in the body of the PUT request to create a duplicate asset.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}1curl --request PUT \2 --url 'https://shopify.com/admin/api/2020-04/themes/{theme_id}/assets.json' \3 --header 'accept: application/json' \4 --header 'content-type: application/json'1{2 "success": true,3 "data": {4 "id": "abc123",5 "created_at": "2025-01-01T00:00:00Z"6 }7}