How to check kit skills

Solved

Hello all,

I created kit endpoints for execution and feedback but when i tried to run graphql query from shopify graphql app , it show error message "KitSkillTriggerRequest access denied" .

I already installed and configured kit app (shopify app), and installed app where i configured kil skills.

please see link images:

- I dont see any scope in graphql app for kit skills(write_kit_skills)
https://drive.google.com/file/d/1SQsF8_KNHGEuk3NJaRDkzevtjMgHpkr5/view?usp=drivesdk

- kit skill id

https://drive.google.com/file/d/1b7poo9jyQuLKcoz7cpv1YhfIdNQMG4cu/view?usp=drivesdk

- Graphql request and response

https://drive.google.com/file/d/13Y3zwiwqYYB06vr8YcNHGKr46iUcOlWp/view?usp=drivesdk


is there any better way to check kit skill?

TIA,
kshitij

Kshitij | Shopify Expert @ Cedcommerce  
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog
1 Like
Shopify Staff
Shopify Staff
412 17 53

Hi, @ksh_verma 

Elle here from Shopify. 

I've moved your post from our general discussion board to the API board as you'll likely receive a better response here!


Cheers,

Elle

Elle | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes
Shopify Staff
Shopify Staff
469 36 92

Hi @ksh_verma ,

 

It looks like the Shopify GraphiQL app currently doesn't have the ability to request write_kit_skills scope.  I'll look into getting this fixed.  In the meantime you could continue testing by either using a public app and requesting the OAuth permission, or creating a private app on the shop and granting that permission.  Another alternative would be using a client like Postman or Insomnia to make the API call.

 

Cheers.

Developer Experience @ Shopify
0 Likes

Hello Ryan,
Thank you for your prompt response.
I have installed insomnia and import collections from source  downloaded the walkthrough as a collection

and configure store name with access_token. It show below error:
https://drive.google.com/file/d/1SL5hUAQaKvzwx5RBYiq5qUFOoJc2eW8K/view?usp=drivesdk

please let me know how to resolve this issue.

 

TIA

kshitij

Kshitij | Shopify Expert @ Cedcommerce  
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog
0 Likes
Shopify Staff
Shopify Staff
469 36 92

You would need to change the API version that you are targeting.  kitSkillTriggerRequest was added in the 2019-07 version so you would need to make the call to /admin/api/2019-07/graphql.json or /admin/api/unstable/graphql.json.

Developer Experience @ Shopify
0 Likes

Hello Ryan,
Thank you for your valuable , sorry i was using april api version , i just changed the url with new api version , but it show error :
Extension not found
Please refer below link
https://community.shopify.com/c/Shopify-APIs-SDKs/How-to-check-kit-skills/m-p/536235

TIA
kshitij

Kshitij | Shopify Expert @ Cedcommerce  
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog
0 Likes
Shopify Staff
Shopify Staff
469 36 92

I think you may have pasted the wrong link for the error. For that issue though I think you need to double check the setup of the extension. Ensure that you have the correct app/shop/ID/extension setup as it seems like the call is working but has the incorrect target.

Developer Experience @ Shopify
1 Like
Highlighted

Hey Ryan,
Sorry i linked wrong url and i have added correct shore name and token.
https://drive.google.com/file/d/1BEN8M_iovLATHMNHiB2Q_z78WHDe4z0J/view?usp=drivesdk

And i got error : Extension not found,
https://drive.google.com/file/d/1Lj9aQJIY32kfNxFhXMTX1n5I5FUKBwZV/view?usp=drivesdk
even i tried to get shop information , and it is working perfectly.
https://drive.google.com/file/d/1Yrt-ayDhzWnnl_pcP68bcakh7kTj3Iwd/view?usp=drivesdk

please let me know where i m going wrong :(

TIA

Kshitij | Shopify Expert @ Cedcommerce  
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog
0 Likes

Success.

Shopify Staff
Shopify Staff
469 36 92

@ksh_verma I dug into it a bit more, you aren't passing the ID of an active, approved Kit extension.  The API call won't succeed unless you pass it an ID of a valid Kit Skill Extension.

Developer Experience @ Shopify
0 Likes

Success.

Shopify Staff
Shopify Staff
469 36 92

Just to expand on the above for other folks who may encounter this issue:

There are few possibilities as to why your request is unsuccessful:

 

  • There is a typo issue on the app extension ID passed as argument on to the Kit Skill request.
  • Your app is not installed on this merchant’s shop.
  • Your Kit Skill app extension is defined on your production app but it is not approved yet.
  • Your Kit Skill app extension was disabled.

For more details check out our documentation.

Developer Experience @ Shopify
0 Likes