Snippets

BrandbassadorAS OCAPI SHOP Permissions

Updated by Mubashir Siddiqui

File shop-permissions.json Modified

  • Ignore whitespace
  • Hide word diff
    "client_id":"YOUR CLIENT ID",
    "resources":[
       {
-         "resource_id":"/baskets",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*",
-         "methods":[
-            "get",
-            "patch",
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/billing_address",
-         "methods":[
-            "put"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/coupons",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/coupons/*",
-         "methods":[
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/customer",
-         "methods":[
-            "put"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/gift_certificate_items",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/items",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/items/*",
-         "methods":[
-            "patch",
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/notes",
-         "methods":[
-            "post",
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/payment_instruments",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/payment_instruments/*",
-         "methods":[
-            "patch",
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/payment_methods",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/shipments",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/shipments/*",
-         "methods":[
-            "patch"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/shipments/*/shipping_address",
-         "methods":[
-            "put"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/shipments/*/shipping_method",
-         "methods":[
-            "put"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/shipments/*/shipping_methods",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/submit",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
          "resource_id":"/categories/*",
          "methods":[
             "get"
          "cache_time":900
       },
       {
-         "resource_id":"/content/*",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/content_search",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/customers",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/auth",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/password_reset",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*",
-         "methods":[
-            "get",
-            "patch"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*/addresses",
-         "methods":[
-            "get",
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*/addresses/*",
-         "methods":[
-            "get",
-            "patch",
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*/baskets",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*/orders",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*/password",
-         "methods":[
-            "put"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*/payment_instruments",
-         "methods":[
-            "get",
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*/payment_instruments/*",
-         "methods":[
-            "get",
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/custom_objects/*/*",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/folders/*",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/gift_certificate",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/orders",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
          "resource_id":"/orders/*",
          "methods":[
             "get"
          "write_attributes":"(**)"
       },
       {
-         "resource_id":"/orders/*/payment_methods",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/orders/*/payment_instruments",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/orders/*/payment_instruments/*",
-         "methods":[
-            "patch",
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
          "resource_id":"/order_search",
          "methods":[
             "post"
          "write_attributes":"(**)"
       },
       {
-         "resource_id":"/product_lists",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/product_lists/*",
-         "methods":[
-            "get",
-            "patch"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/product_lists/*/items",
-         "methods":[
-            "get",
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/product_lists/*/items/*",
-         "methods":[
-            "patch",
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
          "resource_id":"/product_search",
          "methods":[
             "get"
          "cache_time":900
       },
       {
-         "resource_id":"/product_search/availability",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":60
-      },
-      {
-         "resource_id":"/product_search/images",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "config":{
-            "search_result.hits.image:view_type":"large",
-            "search_result.variation_attributes.values.image:view_type":"medium",
-            "search_result.variation_attributes.values.image_swatch:view_type":"swatch"
-         },
-         "cache_time":900
-      },
-      {
-         "resource_id":"/product_search/prices",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":300
-      },
-      {
-         "resource_id":"/product_search/variations",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":887
-      },
-      {
-         "resource_id":"/products/*",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/images",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/availability",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "config":{
-            "product.inventory.ats.max_threshold":"99",
-            "product.inventory.stock_level.max_threshold":"99"
-         },
-         "cache_time":60
-      },
-      {
-         "resource_id":"/products/*/prices",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "config":{
-            "product.prices.price_book_ids":"usd-sale-prices,usd-list-prices"
-         },
-         "cache_time":300
-      },
-      {
-         "resource_id":"/products/*/links",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/promotions",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/options",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/set_products",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/bundled_products",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/links",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/recommendations",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/variations",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/promotions",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/promotions/*",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/search_suggestion",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/sessions",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
          "resource_id":"/site",
          "methods":[
             "get"
Updated by Mubashir Siddiqui

File shop-permissions Deleted

  • Ignore whitespace
  • Hide word diff
-...
-
-{
-   "client_id":"YOUR CLIENT ID",
-   "resources":[
-      {
-         "resource_id":"/baskets",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*",
-         "methods":[
-            "get",
-            "patch",
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/billing_address",
-         "methods":[
-            "put"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/coupons",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/coupons/*",
-         "methods":[
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/customer",
-         "methods":[
-            "put"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/gift_certificate_items",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/items",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/items/*",
-         "methods":[
-            "patch",
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/notes",
-         "methods":[
-            "post",
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/payment_instruments",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/payment_instruments/*",
-         "methods":[
-            "patch",
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/payment_methods",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/shipments",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/shipments/*",
-         "methods":[
-            "patch"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/shipments/*/shipping_address",
-         "methods":[
-            "put"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/shipments/*/shipping_method",
-         "methods":[
-            "put"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/shipments/*/shipping_methods",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/baskets/*/submit",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/categories/*",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/content/*",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/content_search",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/customers",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/auth",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/password_reset",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*",
-         "methods":[
-            "get",
-            "patch"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*/addresses",
-         "methods":[
-            "get",
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*/addresses/*",
-         "methods":[
-            "get",
-            "patch",
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*/baskets",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*/orders",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*/password",
-         "methods":[
-            "put"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*/payment_instruments",
-         "methods":[
-            "get",
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/customers/*/payment_instruments/*",
-         "methods":[
-            "get",
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/custom_objects/*/*",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/folders/*",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/gift_certificate",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/orders",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/orders/*",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/orders/*/notes",
-         "methods":[
-            "get",
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/orders/*/payment_methods",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/orders/*/payment_instruments",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/orders/*/payment_instruments/*",
-         "methods":[
-            "patch",
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/order_search",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/product_lists",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/product_lists/*",
-         "methods":[
-            "get",
-            "patch"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/product_lists/*/items",
-         "methods":[
-            "get",
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/product_lists/*/items/*",
-         "methods":[
-            "patch",
-            "delete"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/product_search",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/product_search/availability",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":60
-      },
-      {
-         "resource_id":"/product_search/images",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "config":{
-            "search_result.hits.image:view_type":"large",
-            "search_result.variation_attributes.values.image:view_type":"medium",
-            "search_result.variation_attributes.values.image_swatch:view_type":"swatch"
-         },
-         "cache_time":900
-      },
-      {
-         "resource_id":"/product_search/prices",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":300
-      },
-      {
-         "resource_id":"/product_search/variations",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":887
-      },
-      {
-         "resource_id":"/products/*",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/images",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/availability",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "config":{
-            "product.inventory.ats.max_threshold":"99",
-            "product.inventory.stock_level.max_threshold":"99"
-         },
-         "cache_time":60
-      },
-      {
-         "resource_id":"/products/*/prices",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "config":{
-            "product.prices.price_book_ids":"usd-sale-prices,usd-list-prices"
-         },
-         "cache_time":300
-      },
-      {
-         "resource_id":"/products/*/links",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/promotions",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/options",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/set_products",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/bundled_products",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/links",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/recommendations",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/products/*/variations",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/promotions",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/promotions/*",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/search_suggestion",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/sessions",
-         "methods":[
-            "post"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)"
-      },
-      {
-         "resource_id":"/site",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/stores",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      },
-      {
-         "resource_id":"/stores/*",
-         "methods":[
-            "get"
-         ],
-         "read_attributes":"(**)",
-         "write_attributes":"(**)",
-         "cache_time":900
-      }
-   ]
-}

File shop-permissions.json Added

  • Ignore whitespace
  • Hide word diff
+{
+   "client_id":"YOUR CLIENT ID",
+   "resources":[
+      {
+         "resource_id":"/baskets",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*",
+         "methods":[
+            "get",
+            "patch",
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/billing_address",
+         "methods":[
+            "put"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/coupons",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/coupons/*",
+         "methods":[
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/customer",
+         "methods":[
+            "put"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/gift_certificate_items",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/items",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/items/*",
+         "methods":[
+            "patch",
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/notes",
+         "methods":[
+            "post",
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/payment_instruments",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/payment_instruments/*",
+         "methods":[
+            "patch",
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/payment_methods",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/shipments",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/shipments/*",
+         "methods":[
+            "patch"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/shipments/*/shipping_address",
+         "methods":[
+            "put"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/shipments/*/shipping_method",
+         "methods":[
+            "put"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/shipments/*/shipping_methods",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/submit",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/categories/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/content/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/content_search",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/customers",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/auth",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/password_reset",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*",
+         "methods":[
+            "get",
+            "patch"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*/addresses",
+         "methods":[
+            "get",
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*/addresses/*",
+         "methods":[
+            "get",
+            "patch",
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*/baskets",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*/orders",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*/password",
+         "methods":[
+            "put"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*/payment_instruments",
+         "methods":[
+            "get",
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*/payment_instruments/*",
+         "methods":[
+            "get",
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/custom_objects/*/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/folders/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/gift_certificate",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/orders",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/orders/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/orders/*/notes",
+         "methods":[
+            "get",
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/orders/*/payment_methods",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/orders/*/payment_instruments",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/orders/*/payment_instruments/*",
+         "methods":[
+            "patch",
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/order_search",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/product_lists",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/product_lists/*",
+         "methods":[
+            "get",
+            "patch"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/product_lists/*/items",
+         "methods":[
+            "get",
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/product_lists/*/items/*",
+         "methods":[
+            "patch",
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/product_search",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/product_search/availability",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":60
+      },
+      {
+         "resource_id":"/product_search/images",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "config":{
+            "search_result.hits.image:view_type":"large",
+            "search_result.variation_attributes.values.image:view_type":"medium",
+            "search_result.variation_attributes.values.image_swatch:view_type":"swatch"
+         },
+         "cache_time":900
+      },
+      {
+         "resource_id":"/product_search/prices",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":300
+      },
+      {
+         "resource_id":"/product_search/variations",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":887
+      },
+      {
+         "resource_id":"/products/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/images",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/availability",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "config":{
+            "product.inventory.ats.max_threshold":"99",
+            "product.inventory.stock_level.max_threshold":"99"
+         },
+         "cache_time":60
+      },
+      {
+         "resource_id":"/products/*/prices",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "config":{
+            "product.prices.price_book_ids":"usd-sale-prices,usd-list-prices"
+         },
+         "cache_time":300
+      },
+      {
+         "resource_id":"/products/*/links",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/promotions",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/options",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/set_products",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/bundled_products",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/links",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/recommendations",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/variations",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/promotions",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/promotions/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/search_suggestion",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/sessions",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/site",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/stores",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/stores/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      }
+   ]
+}
Created by Mubashir Siddiqui

File shop-permissions Added

  • Ignore whitespace
  • Hide word diff
+...
+
+{
+   "client_id":"YOUR CLIENT ID",
+   "resources":[
+      {
+         "resource_id":"/baskets",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*",
+         "methods":[
+            "get",
+            "patch",
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/billing_address",
+         "methods":[
+            "put"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/coupons",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/coupons/*",
+         "methods":[
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/customer",
+         "methods":[
+            "put"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/gift_certificate_items",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/items",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/items/*",
+         "methods":[
+            "patch",
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/notes",
+         "methods":[
+            "post",
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/payment_instruments",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/payment_instruments/*",
+         "methods":[
+            "patch",
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/payment_methods",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/shipments",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/shipments/*",
+         "methods":[
+            "patch"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/shipments/*/shipping_address",
+         "methods":[
+            "put"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/shipments/*/shipping_method",
+         "methods":[
+            "put"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/shipments/*/shipping_methods",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/baskets/*/submit",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/categories/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/content/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/content_search",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/customers",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/auth",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/password_reset",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*",
+         "methods":[
+            "get",
+            "patch"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*/addresses",
+         "methods":[
+            "get",
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*/addresses/*",
+         "methods":[
+            "get",
+            "patch",
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*/baskets",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*/orders",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*/password",
+         "methods":[
+            "put"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*/payment_instruments",
+         "methods":[
+            "get",
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/customers/*/payment_instruments/*",
+         "methods":[
+            "get",
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/custom_objects/*/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/folders/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/gift_certificate",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/orders",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/orders/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/orders/*/notes",
+         "methods":[
+            "get",
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/orders/*/payment_methods",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/orders/*/payment_instruments",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/orders/*/payment_instruments/*",
+         "methods":[
+            "patch",
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/order_search",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/product_lists",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/product_lists/*",
+         "methods":[
+            "get",
+            "patch"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/product_lists/*/items",
+         "methods":[
+            "get",
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/product_lists/*/items/*",
+         "methods":[
+            "patch",
+            "delete"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/product_search",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/product_search/availability",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":60
+      },
+      {
+         "resource_id":"/product_search/images",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "config":{
+            "search_result.hits.image:view_type":"large",
+            "search_result.variation_attributes.values.image:view_type":"medium",
+            "search_result.variation_attributes.values.image_swatch:view_type":"swatch"
+         },
+         "cache_time":900
+      },
+      {
+         "resource_id":"/product_search/prices",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":300
+      },
+      {
+         "resource_id":"/product_search/variations",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":887
+      },
+      {
+         "resource_id":"/products/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/images",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/availability",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "config":{
+            "product.inventory.ats.max_threshold":"99",
+            "product.inventory.stock_level.max_threshold":"99"
+         },
+         "cache_time":60
+      },
+      {
+         "resource_id":"/products/*/prices",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "config":{
+            "product.prices.price_book_ids":"usd-sale-prices,usd-list-prices"
+         },
+         "cache_time":300
+      },
+      {
+         "resource_id":"/products/*/links",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/promotions",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/options",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/set_products",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/bundled_products",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/links",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/recommendations",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/products/*/variations",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/promotions",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/promotions/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/search_suggestion",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/sessions",
+         "methods":[
+            "post"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)"
+      },
+      {
+         "resource_id":"/site",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/stores",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      },
+      {
+         "resource_id":"/stores/*",
+         "methods":[
+            "get"
+         ],
+         "read_attributes":"(**)",
+         "write_attributes":"(**)",
+         "cache_time":900
+      }
+   ]
+}
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.