Leiste mit Community-Erfolgen erweitern.

GELÖST

How to create JSON offer in Target using API

Avatar

Level 1

Is it possible to generate a JSON offer in Target through the Target API? I've experimented with the documentation available here - Target API v1.0​, but it doesn't seem to include a documented method for specifying the offer type, such as JSON.

Documentation example - Target API v1.0 :

 

curl -X POST \
  https://mc.adobe.io/<your-tenant-name>/target/offers/content \
  -H 'authorization: Bearer <your-bearer-token>' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/vnd.adobe.target.v2+json' \
  -H 'x-api-key: <your-api-token>'
  -d ' {
     "name": "My new offer",
     "content": "<div>The content of the offer</div>",
         "workspace": "1234567" 
 }
'

 

Themen

Anhand von Themen werden Community-Inhalte kategorisiert und Sie können so relevanten Inhalt besser finden.

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Employee Advisor

Might be this that you're looking for?

Lösung in ursprünglichem Beitrag anzeigen

1 Antwort

Avatar

Korrekte Antwort von
Employee Advisor

Might be this that you're looking for?