{"info":{"_postman_id":"605085a6-5898-4b7f-8363-7b73ba6f9d8b","name":"Magento 2 Catalog Permission GraphQL & Examples","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"24281445","collectionId":"605085a6-5898-4b7f-8363-7b73ba6f9d8b","publishedId":"2s9Y5R1mB4","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-08-17T04:32:53.000Z"},"item":[{"name":"Get Config Catalog Permission","id":"4d371af6-00e7-4742-8094-066d82477e7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpCatalogPermissionsConfig(storeId:\"1\"){\r\n    general{\r\n      disable_all_restrict_ip\r\n      disable_search_by_group\r\n    }\r\n    restrict_category{\r\n      enabled\r\n      hide_on_menu\r\n      redirect_to\r\n      select_cms_page\r\n      show_message\r\n      specific_url\r\n    }\r\n    restrict_product{\r\n      enabled\r\n      hide_on_category_and_widget\r\n      redirect_to\r\n      select_cms_page\r\n      show_message\r\n      specific_url\r\n    }\r\n    restrict_static_page{\r\n      enabled\r\n      redirect_to\r\n      select_cms_page\r\n      show_message\r\n      specific_url\r\n    }\r\n    restrict_block{\r\n      enabled\r\n    }\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"fdf93d24-0e29-46d0-a79f-ee2fcea08b6c","name":"Get Config Catalog Permission example","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query{\r\n  mpCatalogPermissionsConfig(storeId:\"1\"){\r\n    general{\r\n      disable_all_restrict_ip\r\n      disable_search_by_group\r\n    }\r\n    restrict_category{\r\n      enabled\r\n      hide_on_menu\r\n      redirect_to\r\n      select_cms_page\r\n      show_message\r\n      specific_url\r\n    }\r\n    restrict_product{\r\n      enabled\r\n      hide_on_category_and_widget\r\n      redirect_to\r\n      select_cms_page\r\n      show_message\r\n      specific_url\r\n    }\r\n    restrict_static_page{\r\n      enabled\r\n      redirect_to\r\n      select_cms_page\r\n      show_message\r\n      specific_url\r\n    }\r\n    restrict_block{\r\n      enabled\r\n    }\r\n  }\r\n}","variables":""}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 17 Aug 2023 04:28:54 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Wed, 17 Aug 2022 04:28:54 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=8k94srolqttgcta1bjnehnu2o3; expires=Thu, 17-Aug-2023 05:28:54 GMT; Max-Age=3600; path=/nhatpq/ce246f/pub; domain=117.6.131.199; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=80ac551630632c726b85089bc41c93f2; expires=Sun, 14-Aug-2033 04:28:54 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"X-Magento-Cache-Id","value":"af809732461972b248a5fd784f0bde9d447d6cced55e74195bb6d49ca4d6a062"},{"key":"X-Magento-Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"X-Magento-Tags","value":"FPC"},{"key":"X-Magento-Cache-Debug","value":"MISS"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"761"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"mpCatalogPermissionsConfig\": {\n            \"general\": {\n                \"disable_all_restrict_ip\": null,\n                \"disable_search_by_group\": \"999\"\n            },\n            \"restrict_category\": {\n                \"enabled\": true,\n                \"hide_on_menu\": false,\n                \"redirect_to\": \"cms_page\",\n                \"select_cms_page\": \"no-route\",\n                \"show_message\": \"You do not have permission to access this category page.\",\n                \"specific_url\": null\n            },\n            \"restrict_product\": {\n                \"enabled\": true,\n                \"hide_on_category_and_widget\": false,\n                \"redirect_to\": \"cms_page\",\n                \"select_cms_page\": \"no-route\",\n                \"show_message\": \"You do not have permission to access this product page.\",\n                \"specific_url\": null\n            },\n            \"restrict_static_page\": {\n                \"enabled\": true,\n                \"redirect_to\": \"cms_page\",\n                \"select_cms_page\": \"no-route\",\n                \"show_message\": \"You do not have permission to access this static page.\",\n                \"specific_url\": null\n            },\n            \"restrict_block\": {\n                \"enabled\": true\n            }\n        }\n    }\n}"}],"_postman_id":"4d371af6-00e7-4742-8094-066d82477e7b"},{"name":"Restrict Category","id":"c639fffb-17e5-4f1d-a418-3a219b440798","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation mp_cp(\r\n  $ids: String\r\n  $store_id: String\r\n  $is_active: Boolean\r\n  $customer_group: String\r\n  $redirect_to: String\r\n  $select_cmspage: String\r\n  $specific_url: String\r\n  $message: String\r\n  $hide_action: Boolean\r\n  $start_date: String\r\n  $end_date: String\r\n){\r\n  mpCatalogPermissionRestrictCategory(\r\n    input:{\r\n      ids: $ids\r\n      store_id: $store_id\r\n      is_active: $is_active\r\n      customer_group: $customer_group\r\n      redirect_to: $redirect_to\r\n      select_cmspage: $select_cmspage\r\n      specific_url: $specific_url\r\n      message: $message\r\n      hide_action: $hide_action\r\n      start_date: $start_date\r\n      end_date: $end_date\r\n    }\r\n  ){\r\n    ids\r\n    store_id\r\n    is_active\r\n    customer_group\r\n    redirect_to\r\n    select_cmspage\r\n    specific_url\r\n    message\r\n    hide_action\r\n    start_date\r\n    end_date\r\n  }\r\n}","variables":"{\r\n    \"ids\": \"14\",\r\n    \"store_id\": \"1\",\r\n    \"is_active\": false,\r\n    \"customer_group\": \"0,1\",\r\n    \"redirect_to\":\"cms_page\",\r\n    \"select_cmspage\":\"home\",\r\n    \"specific_url\":\"abc\",\r\n    \"message\":\"abc\",\r\n    \"hide_action\": true,\r\n    \"start_date\": \"2023-08-17\",\r\n    \"end_date\":\"2023-08-19\"\r\n}"}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"ef89fbaa-3732-477e-b6c9-90f2c1eb7d01","name":"Restrict Category example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation mp_cp(\r\n  $ids: String\r\n  $store_id: String\r\n  $is_active: Boolean\r\n  $customer_group: String\r\n  $redirect_to: String\r\n  $select_cmspage: String\r\n  $specific_url: String\r\n  $message: String\r\n  $hide_action: Boolean\r\n  $start_date: String\r\n  $end_date: String\r\n){\r\n  mpCatalogPermissionRestrictCategory(\r\n    input:{\r\n      ids: $ids\r\n      store_id: $store_id\r\n      is_active: $is_active\r\n      customer_group: $customer_group\r\n      redirect_to: $redirect_to\r\n      select_cmspage: $select_cmspage\r\n      specific_url: $specific_url\r\n      message: $message\r\n      hide_action: $hide_action\r\n      start_date: $start_date\r\n      end_date: $end_date\r\n    }\r\n  ){\r\n    ids\r\n    store_id\r\n    is_active\r\n    customer_group\r\n    redirect_to\r\n    select_cmspage\r\n    specific_url\r\n    message\r\n    hide_action\r\n    start_date\r\n    end_date\r\n  }\r\n}","variables":"{\r\n    \"ids\": \"14\",\r\n    \"store_id\": \"1\",\r\n    \"is_active\": false,\r\n    \"customer_group\": \"0,1\",\r\n    \"redirect_to\":\"cms_page\",\r\n    \"select_cmspage\":\"home\",\r\n    \"specific_url\":\"abc\",\r\n    \"message\":\"abc\",\r\n    \"hide_action\": true,\r\n    \"start_date\": \"2023-08-17\",\r\n    \"end_date\":\"2023-08-19\"\r\n}"}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 17 Aug 2023 04:29:06 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Wed, 17 Aug 2022 04:29:06 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=8k94srolqttgcta1bjnehnu2o3; expires=Thu, 17-Aug-2023 05:29:06 GMT; Max-Age=3600; path=/nhatpq/ce246f/pub; domain=117.6.131.199; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=a8f6fe1a000fbea0a6b882f84cf71384; expires=Sun, 14-Aug-2033 04:29:06 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"X-Magento-Cache-Id","value":"af809732461972b248a5fd784f0bde9d447d6cced55e74195bb6d49ca4d6a062"},{"key":"X-Magento-Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"X-Magento-Tags","value":"FPC"},{"key":"X-Magento-Cache-Debug","value":"MISS"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"272"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"mpCatalogPermissionRestrictCategory\": {\n            \"ids\": \"14\",\n            \"store_id\": \"1\",\n            \"is_active\": false,\n            \"customer_group\": \"0,1\",\n            \"redirect_to\": \"cms_page\",\n            \"select_cmspage\": \"home\",\n            \"specific_url\": \"abc\",\n            \"message\": \"abc\",\n            \"hide_action\": true,\n            \"start_date\": \"2023-08-17\",\n            \"end_date\": \"2023-08-19\"\n        }\n    }\n}"}],"_postman_id":"c639fffb-17e5-4f1d-a418-3a219b440798"},{"name":"Restrict Product","id":"280bf19d-a7c2-4b21-9190-ba8b8d281335","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation mp_cp(\r\n  $ids: String\r\n  $store_id: String\r\n  $customer_group: String\r\n  $is_active: Boolean\r\n  $redirect_to: String\r\n  $select_cmspage: String\r\n  $specific_url: String\r\n  $message: String\r\n  $hide_action: Boolean\r\n  $start_date: String\r\n  $end_date: String\r\n){\r\n  mpCatalogPermissionRestrictProduct(\r\n    input:{\r\n      ids: $ids\r\n      store_id: $store_id\r\n      is_active: $is_active\r\n      customer_group: $customer_group\r\n      redirect_to: $redirect_to\r\n      select_cmspage: $select_cmspage\r\n      specific_url: $specific_url\r\n      message: $message\r\n      hide_action: $hide_action\r\n      start_date: $start_date\r\n      end_date: $end_date\r\n    }\r\n  ){\r\n    ids\r\n    store_id\r\n    is_active\r\n    customer_group\r\n    redirect_to\r\n    select_cmspage\r\n    specific_url\r\n    message\r\n    hide_action\r\n    start_date\r\n    end_date\r\n  }\r\n}","variables":"{\r\n    \"ids\": \"6\",\r\n    \"store_id\": \"2\",\r\n    \"is_active\": true,\r\n    \"customer_group\": \"0,1,2\",\r\n    \"redirect_to\":\"cms_page\",\r\n    \"select_cmspage\":\"home\",\r\n    \"specific_url\":\"http://117.6.131.199:580/nhatpq/ce246f/pub/sale.html\",\r\n    \"message\":\"abc\",\r\n    \"hide_action\": false,\r\n    \"start_date\": \"2023-08-15\",\r\n    \"end_date\":\"\"\r\n}"}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"3a347f7a-9ac2-480e-852f-5992537eb45d","name":"Restrict Product example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation mp_cp(\r\n  $ids: String\r\n  $store_id: String\r\n  $customer_group: String\r\n  $is_active: Boolean\r\n  $redirect_to: String\r\n  $select_cmspage: String\r\n  $specific_url: String\r\n  $message: String\r\n  $hide_action: Boolean\r\n  $start_date: String\r\n  $end_date: String\r\n){\r\n  mpCatalogPermissionRestrictProduct(\r\n    input:{\r\n      ids: $ids\r\n      store_id: $store_id\r\n      is_active: $is_active\r\n      customer_group: $customer_group\r\n      redirect_to: $redirect_to\r\n      select_cmspage: $select_cmspage\r\n      specific_url: $specific_url\r\n      message: $message\r\n      hide_action: $hide_action\r\n      start_date: $start_date\r\n      end_date: $end_date\r\n    }\r\n  ){\r\n    ids\r\n    store_id\r\n    is_active\r\n    customer_group\r\n    redirect_to\r\n    select_cmspage\r\n    specific_url\r\n    message\r\n    hide_action\r\n    start_date\r\n    end_date\r\n  }\r\n}","variables":"{\r\n    \"ids\": \"6\",\r\n    \"store_id\": \"2\",\r\n    \"is_active\": true,\r\n    \"customer_group\": \"0,1,2\",\r\n    \"redirect_to\":\"cms_page\",\r\n    \"select_cmspage\":\"home\",\r\n    \"specific_url\":\"http://117.6.131.199:580/nhatpq/ce246f/pub/sale.html\",\r\n    \"message\":\"abc\",\r\n    \"hide_action\": false,\r\n    \"start_date\": \"2023-08-15\",\r\n    \"end_date\":\"\"\r\n}"}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 17 Aug 2023 04:29:16 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Wed, 17 Aug 2022 04:29:26 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=8k94srolqttgcta1bjnehnu2o3; expires=Thu, 17-Aug-2023 05:29:26 GMT; Max-Age=3600; path=/nhatpq/ce246f/pub; domain=117.6.131.199; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=7469927344225a24fd022247b805beeb; expires=Sun, 14-Aug-2033 04:29:26 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"X-Magento-Cache-Id","value":"af809732461972b248a5fd784f0bde9d447d6cced55e74195bb6d49ca4d6a062"},{"key":"X-Magento-Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"X-Magento-Tags","value":"FPC"},{"key":"X-Magento-Cache-Debug","value":"MISS"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"317"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"mpCatalogPermissionRestrictProduct\": {\n            \"ids\": \"6\",\n            \"store_id\": \"2\",\n            \"is_active\": true,\n            \"customer_group\": \"0,1,2\",\n            \"redirect_to\": \"cms_page\",\n            \"select_cmspage\": \"home\",\n            \"specific_url\": \"http://117.6.131.199:580/nhatpq/ce246f/pub/sale.html\",\n            \"message\": \"abc\",\n            \"hide_action\": false,\n            \"start_date\": \"2023-08-15\",\n            \"end_date\": \"\"\n        }\n    }\n}"}],"_postman_id":"280bf19d-a7c2-4b21-9190-ba8b8d281335"},{"name":"Restrict Static Page","id":"9fcfc2f2-396c-4833-a551-542b6534db53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation mp_cp(\r\n  $ids: String\r\n  $is_active: Boolean\r\n  $customer_group: String\r\n  $redirect_to: String\r\n  $select_cmspage: String\r\n  $specific_url: String\r\n  $message: String\r\n  $start_date: String\r\n  $end_date: String\r\n){\r\n  mpCatalogPermissionRestrictPage(\r\n    input:{\r\n      ids: $ids\r\n      is_active: $is_active\r\n      customer_group: $customer_group\r\n      redirect_to: $redirect_to\r\n      select_cmspage: $select_cmspage\r\n      specific_url: $specific_url\r\n      message: $message\r\n      start_date: $start_date\r\n      end_date: $end_date\r\n    }\r\n  ){\r\n    ids\r\n    is_active\r\n    customer_group\r\n    redirect_to\r\n    select_cmspage\r\n    specific_url\r\n    message\r\n    start_date\r\n    end_date\r\n  }\r\n}","variables":"{\r\n    \"ids\": \"4\",\r\n    \"is_active\": false,\r\n    \"customer_group\": \"0,1\",\r\n    \"redirect_to\":\"cms_page\",\r\n    \"select_cmspage\":\"home\",\r\n    \"specific_url\":\"http://117.6.131.199:580/nhatpq/ce246f/pub/gear.html\",\r\n    \"message\":\"abc\",\r\n    \"start_date\": \"2023-08-17\",\r\n    \"end_date\":\"2023-08-26\"\r\n}"}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"c983ca66-2f02-408c-bbe8-b46633c864ea","name":"Restrict Static Page example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation mp_cp(\r\n  $ids: String\r\n  $is_active: Boolean\r\n  $customer_group: String\r\n  $redirect_to: String\r\n  $select_cmspage: String\r\n  $specific_url: String\r\n  $message: String\r\n  $start_date: String\r\n  $end_date: String\r\n){\r\n  mpCatalogPermissionRestrictPage(\r\n    input:{\r\n      ids: $ids\r\n      is_active: $is_active\r\n      customer_group: $customer_group\r\n      redirect_to: $redirect_to\r\n      select_cmspage: $select_cmspage\r\n      specific_url: $specific_url\r\n      message: $message\r\n      start_date: $start_date\r\n      end_date: $end_date\r\n    }\r\n  ){\r\n    ids\r\n    is_active\r\n    customer_group\r\n    redirect_to\r\n    select_cmspage\r\n    specific_url\r\n    message\r\n    start_date\r\n    end_date\r\n  }\r\n}","variables":"{\r\n    \"ids\": \"4\",\r\n    \"is_active\": false,\r\n    \"customer_group\": \"0,1\",\r\n    \"redirect_to\":\"cms_page\",\r\n    \"select_cmspage\":\"home\",\r\n    \"specific_url\":\"http://117.6.131.199:580/nhatpq/ce246f/pub/gear.html\",\r\n    \"message\":\"abc\",\r\n    \"start_date\": \"2023-08-17\",\r\n    \"end_date\":\"2023-08-26\"\r\n}"}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 17 Aug 2023 04:29:44 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Wed, 17 Aug 2022 04:29:44 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=8k94srolqttgcta1bjnehnu2o3; expires=Thu, 17-Aug-2023 05:29:44 GMT; Max-Age=3600; path=/nhatpq/ce246f/pub; domain=117.6.131.199; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=11652e52c94244a7a08861688c1064ef; expires=Sun, 14-Aug-2033 04:29:44 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"X-Magento-Cache-Id","value":"af809732461972b248a5fd784f0bde9d447d6cced55e74195bb6d49ca4d6a062"},{"key":"X-Magento-Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"X-Magento-Tags","value":"FPC"},{"key":"X-Magento-Cache-Debug","value":"MISS"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"288"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"mpCatalogPermissionRestrictPage\": {\n            \"ids\": \"4\",\n            \"is_active\": false,\n            \"customer_group\": \"0,1\",\n            \"redirect_to\": \"cms_page\",\n            \"select_cmspage\": \"home\",\n            \"specific_url\": \"http://117.6.131.199:580/nhatpq/ce246f/pub/gear.html\",\n            \"message\": \"abc\",\n            \"start_date\": \"2023-08-17\",\n            \"end_date\": \"2023-08-26\"\n        }\n    }\n}"}],"_postman_id":"9fcfc2f2-396c-4833-a551-542b6534db53"},{"name":"Restrict Static Block","id":"157017f7-394d-4066-85cf-b9a0b71451a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation mp_cp(\r\n  $ids: String\r\n  $is_active: Boolean\r\n  $customer_group: String\r\n  $start_date: String\r\n  $end_date: String\r\n  $content: String\r\n){\r\n  mpCatalogPermissionRestrictBlock(\r\n    input:{\r\n      ids: $ids\r\n      is_active: $is_active\r\n      customer_group: $customer_group\r\n      start_date: $start_date\r\n      end_date: $end_date\r\n      content: $content\r\n    }\r\n  ){\r\n    ids\r\n    is_active\r\n    customer_group\r\n    start_date\r\n    end_date\r\n    content\r\n  }\r\n}","variables":"{\r\n    \"ids\": \"12\",\r\n    \"is_active\": true,\r\n    \"customer_group\": \"0,1\",\r\n    \"start_date\": \"2023-08-17\",\r\n    \"end_date\":\"2023-08-26\",\r\n    \"content\": \"abcd\"\r\n}"}},"url":"{{magento_base_url}}/graphql","urlObject":{"path":["graphql"],"host":["{{magento_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"77f18a8a-1525-4c15-ace5-7b9765fb5cce","name":"Restrict Static Block example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation mp_cp(\r\n  $ids: String\r\n  $is_active: Boolean\r\n  $customer_group: String\r\n  $start_date: String\r\n  $end_date: String\r\n  $content: String\r\n){\r\n  mpCatalogPermissionRestrictBlock(\r\n    input:{\r\n      ids: $ids\r\n      is_active: $is_active\r\n      customer_group: $customer_group\r\n      start_date: $start_date\r\n      end_date: $end_date\r\n      content: $content\r\n    }\r\n  ){\r\n    ids\r\n    is_active\r\n    customer_group\r\n    start_date\r\n    end_date\r\n    content\r\n  }\r\n}","variables":"{\r\n    \"ids\": \"12\",\r\n    \"is_active\": true,\r\n    \"customer_group\": \"0,1\",\r\n    \"start_date\": \"2023-08-17\",\r\n    \"end_date\":\"2023-08-26\",\r\n    \"content\": \"abcd\"\r\n}"}},"url":"{{magento_base_url}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 17 Aug 2023 04:29:53 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Expires","value":"Wed, 17 Aug 2022 04:29:53 GMT"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=8k94srolqttgcta1bjnehnu2o3; expires=Thu, 17-Aug-2023 05:29:53 GMT; Max-Age=3600; path=/nhatpq/ce246f/pub; domain=117.6.131.199; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"private_content_version=d1b7794688beb99107a1233931413a71; expires=Sun, 14-Aug-2033 04:29:53 GMT; Max-Age=315360000; path=/; SameSite=Lax"},{"key":"X-Magento-Cache-Id","value":"af809732461972b248a5fd784f0bde9d447d6cced55e74195bb6d49ca4d6a062"},{"key":"X-Magento-Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store"},{"key":"X-Magento-Tags","value":"FPC"},{"key":"X-Magento-Cache-Debug","value":"MISS"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Length","value":"165"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"mpCatalogPermissionRestrictBlock\": {\n            \"ids\": \"12\",\n            \"is_active\": true,\n            \"customer_group\": \"0,1\",\n            \"start_date\": \"2023-08-17\",\n            \"end_date\": \"2023-08-26\",\n            \"content\": \"abcd\"\n        }\n    }\n}"}],"_postman_id":"157017f7-394d-4066-85cf-b9a0b71451a3"}]}