{
	"info": {
		"_postman_id": "3ba2ad22-f970-4d45-80e6-f03dd58dfb8c",
		"name": "Multi-Language Translations",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "19236182",
		"_collection_link": "https://martian-station-14477.postman.co/workspace/Example-Workspace~87b7d50c-a17f-4fa6-96fe-2ac99d6f135e/collection/19236182-3ba2ad22-f970-4d45-80e6-f03dd58dfb8c?action=share&source=collection_link&creator=19236182"
	},
	"item": [
		{
			"name": "Product Basic Information",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "X-Auth-Token",
						"value": "{{access_token}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "graphql",
					"graphql": {
						"query": "mutation (\n  $input: SetProductBasicInformationInput!\n) {\n  product {\n    setProductBasicInformation(input: $input) {\n      product {\n        id\n        overridesForLocale (localeContext: { channelId: \"bc/store/channel/{{channel_id}}\", locale: \"fr\" }) {\n          basicInformation {\n            name\n            description\n          }\n        }\n      }\n    }\n  }\n}",
						"variables": "{\n  \"input\": {\n    \"productId\": \"bc/store/product/{{product_id}}\",\n    \"localeContext\": {\n      \"channelId\": \"bc/store/channel/{{channel_id}}\",\n      \"locale\": \"fr\"\n    },\n    \"data\": {\n      \"name\": \"{{name_fr}}\",\n      \"description\": \"{{description_fr}}\"\n    }\n  }\n}\n"
					}
				},
				"url": {
					"raw": "https://api.bigcommerce.com/stores/{{store_hash}}/graphql",
					"protocol": "https",
					"host": [
						"api",
						"bigcommerce",
						"com"
					],
					"path": [
						"stores",
						"{{store_hash}}",
						"graphql"
					]
				}
			},
			"response": []
		},
		{
			"name": "Product Search Keywords",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "X-Auth-Token",
						"value": "{{access_token}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "graphql",
					"graphql": {
						"query": "mutation ($input: SetProductStorefrontDetailsInput!) {\n  product {\n    setProductStorefrontDetails (input: $input) {\n      product {\n        overridesForLocale (localeContext: {locale: \"fr\", channelId: \"bc/store/channel/{{channel_id}}\"}) {\n          storefrontDetails {\n            searchKeywords\n          }\n        }\n      }\n    }\n  }\n}",
						"variables": "{\n  \"input\": {\n    \"productId\": \"bc/store/product/{{product_id}}\",\n    \"localeContext\": {\n      \"locale\": \"fr\",\n      \"channelId\": \"bc/store/channel/{{channel_id}}\"\n    },\n    \"data\": {\n      \"searchKeywords\": \"{{search_keywords_fr}}\"\n    }\n  }\n}"
					}
				},
				"url": {
					"raw": "https://api.bigcommerce.com/stores/{{store_hash}}/graphql",
					"protocol": "https",
					"host": [
						"api",
						"bigcommerce",
						"com"
					],
					"path": [
						"stores",
						"{{store_hash}}",
						"graphql"
					]
				}
			},
			"response": []
		},
		{
			"name": "Categories",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "X-Auth-Token",
						"value": "{{access_token}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "graphql",
					"graphql": {
						"query": "  mutation {\n    translation {\n        updateTranslations(input: {\n            resourceType: CATEGORIES,\n            channelId: \"bc/store/channel/{{channel_id}}\",\n            localeId: \"bc/store/locale/fr\",\n            entities: [\n                {\n                    resourceId: \"bc/store/category/{{category_id}}\",\n                    fields: [\n                        {\n                          fieldName: \"name\",\n                          value: \"{{name_fr}}\"\n                        },\n                        {\n                          fieldName: \"description\",\n                          value: \"{{description_fr}}\"\n                        },\n                        {\n                          fieldName: \"page_title\",\n                          value: \"{{page_title_fr}}\"\n                        },\n                        {\n                          fieldName: \"meta_description\",\n                          value: \"{{meta_description_fr}}\"\n                        },\n                        {\n                          fieldName: \"search_keywords\",\n                          value: \"{{search_keywords_fr}}\"\n                    }\n                ]\n            }\n        ]\n    }) {\n        __typename\n        errors {\n            __typename\n            ... on Error {\n                message\n            }\n        }\n    }\n}\n}",
						"variables": ""
					}
				},
				"url": {
					"raw": "https://api.bigcommerce.com/stores/{{store_hash}}/graphql",
					"protocol": "https",
					"host": [
						"api",
						"bigcommerce",
						"com"
					],
					"path": [
						"stores",
						"{{store_hash}}",
						"graphql"
					]
				}
			},
			"response": []
		},
		{
			"name": "Brands",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "X-Auth-Token",
						"value": "{{access_token}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "graphql",
					"graphql": {
						"query": "mutation {\n    translation {\n        updateTranslations(input: {\n            resourceType: BRANDS,\n            channelId: \"bc/store/channel/{{channel_id}}\",\n            localeId: \"bc/store/locale/fr\",\n            entities: [\n                {\n                    resourceId: \"bc/store/brand/{{brand_id}}\",\n                    fields: [\n                        {\n                            fieldName: \"name\",\n                            value: \"{{name_fr}}\"\n                        },\n                        {\n                            fieldName: \"page_title\",\n                            value: \"{{page_title_fr}}\"\n                        },\n                        {\n                            fieldName: \"meta_keywords\",\n                            value: \"{{meta_keywords_fr}}\"\n                        },\n                        {\n                            fieldName: \"meta_description\",\n                            value: \"{{meta_description_fr}}\"\n                        },\n                        {\n                            fieldName: \"search_keywords\",\n                            value: \"{{search_keywords_fr}}\"\n                        }\n                    ]\n                }\n            ]\n        }) {\n            __typename\n            errors {\n                __typename\n                ... on Error {\n                    message\n                }\n            }\n        }\n    }\n}",
						"variables": ""
					}
				},
				"url": {
					"raw": "https://api.bigcommerce.com/stores/{{store_hash}}/graphql",
					"protocol": "https",
					"host": [
						"api",
						"bigcommerce",
						"com"
					],
					"path": [
						"stores",
						"{{store_hash}}",
						"graphql"
					]
				}
			},
			"response": []
		}
	]
}