Skip to content

Instantly share code, notes, and snippets.

View experius-nl's full-sized avatar

Experius experius-nl

View GitHub Profile
UPDATE staging.core_config_data SET value = CONCAT( LEFT(value, LENGTH(value) -1), ':8888/') WHERE path LIKE '%web/unsecure%' AND value LIKE '%http://%';
UPDATE staging.core_config_data SET value = CONCAT( LEFT(value, LENGTH(value) -1), ':8443/') WHERE path LIKE '%web/unsecure%' AND value LIKE '%https://%';
UPDATE staging.core_config_data SET value = CONCAT( LEFT(value, LENGTH(value) -1), ':8888/') WHERE path LIKE '%web/secure%' AND value LIKE '%http://%';
UPDATE staging.core_config_data SET value = CONCAT( LEFT(value, LENGTH(value) -1), ':8443/') WHERE path LIKE '%web/secure%' AND value LIKE '%https://%';
@experius-nl
experius-nl / m2-product-image-create-update.json
Created January 23, 2018 10:28
M2 - Product Image Create and Update
Index:
Step 1. - Image Create: Position 1 (POST /V1/products/{sku}/media)
Step 2. - Image Create: Position 2 (POST /V1/products/{sku}/media)
Step 3. - Image Create: Position 3 (POST /V1/products/{sku}/media)
Step 4. - Get Images to get correct ids for update (GET /V1/products/{sku}/media)
Step 5. - Position 1 Update Image (PUT /V1/products/{sku}/media/{entryId})
Step 6. - Position 2 Update Image (PUT /V1/products/{sku}/media/{entryId})
Step 7. - Position 3 Update Image (PUT /V1/products/{sku}/media/{entryId})