Hi I am trying to create Adobe Launch rules using Reactor API + Python Script, I am able to create the RULE but unable to create the component, the Sample API request available in the documentation is not so helping, I am need help on the sample API request for different Rule component request. Any Help is appreciated.
Views
Replies
Total Likes
Hi @GaneshSi
You can create Rule components using the Adobe Launch API. Could you please elaborate on where you need help? Because, I have followed the same documentation to complete the integration.
Views
Replies
Total Likes
Thanks for replying :Elanchezhiyan )
What I am trying to accomplish is create Adobe Rules with all its component, end to end how we do it from Adobe Launch, I know it is possible via Reactor API, but while creating via python script, I am getting following error, I belive the constructed API does not follows proper JSON Key:values as define by adobe, any pointer to the exact components Key value pair to construct a proper request would help, if this is still not clear, I try explaining better.
https://experienceleague.adobe.com/en/docs/experience-platform/tags/api/endpoints/rule-components
Condition creation error: 409 {"errors":[{"id":"","code":"invalid-settings","title":"Invalid settings","detail":"The property 'leftOperand' of type string did not match any of the required schemas","meta":{"request_id":""},"source":{"pointer":"/data/attributes/settings"}},{"id":"","code":"invalid-settings","title":"Invalid settings","detail":"The property 'comparison/operator' of type string did not match any of the required schemas","meta":{"request_id":""},"source":{"pointer":"/data/attributes/settings"}},{"id":"","code":"invalid-settings","title":"Invalid settings","detail":"The property 'rightOperand' of type string did not match any of the required schemas","meta":{"request_id":""},"source":{"pointer":"/data/attributes/settings"}}]}
Views
Replies
Total Likes
Hi @GaneshSi,
I think the error is related to the component settings. Please correct me if I'm wrong.
For every event and condition related to an extension, there is a delegate descriptor id (mandatory) and settings(if required) when you intend to create an rule component for any rules.
For example, if you need to create a page load Event using window loaded and specify the domain in the condition, the settings would look like this,
Event:
{
Views
Replies
Total Likes
Hi Elanchezhiyan,
I appreciate your help and thanks a lot
I made the changes as per the suggestion and it worked, Now I have to construct the Payload exactly that matches each of the option available in the Adobe Launch. Do you have any reference link that lists out all the JSON sample to the results that we want, is the only other way is to create and retrieve via POSTMAN. For now this Helps.
Hi @GaneshSi,
I have followed the same method to extract all the Payloads for integrations with our applications.
You may get some ideas by going through this blog - https://github.com/adobe/reactor-developer-docs/tree/main/api
Views
Replies
Total Likes