Skip to Content

Creating Trigger Data using personalizationwebservices Extension

In the last part of the trail, while creating a new Trigger. If i try to run the cURL command curl --insecure --verbose --header "Authorization: Bearer fcd0e4aa-0226-4668-96ff-8a5281e2154e" --header "Content-Type: application/json" https://localhost:9002/personalizationwebservices/v1/catalogs/electronicsContentCatalog/catalogVersions/Staged/customizations/Banner/variations/variationForUserGroup/triggers --request POST --data '{"type" : "userGroupTriggerData","code" : "newUserGroupTrigger"}'

where fcd0e4aa-0226-4668-96ff-8a5281e2154e is the token I am getting an output as (refer image)

"errors" : [ { "message" : "Access token expired: fcd0e4aa-0226-4668-96ff-8a5281e2154e", "type" : "InvalidTokenError" } ]

Link for the trail :

Can anyone help me find a solution to this. Thanksalt text

7304-capture.png (41.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 15, 2016 at 07:18 AM

    You have to generate fresh token and pass to your request. As every token has validity.

    Thanks, Jayant

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.