(API) How to define TAGS to PushPull
This tutorial has a purpose to show how easy it is to add MediaTags to your pushpull feature of type Pull Request.
Instructions
Add a container of Select pushpull and click in Save Button:
In “Select your Features”, click on Pull, the tags only work in a pull feature, then click in Next Step:
In the Pull Page, Add a Request Message (Required) and then add how many tags you need, as follow:
Next click SEND (the container will be sent to your client):
On a Pull page, the receiver will see something like that:
How to create/edit/delete MediaTags using cURL:
Adding a MediaTags by CURL (Using cURL to Windows):
curl -i --request POST "https://api.botdoc.io/v1/module_container_pushpull/mediatag/" \
--header "Authorization: Autorization Key" \
--header "Content-Type: application/json" \
--data-raw "{
"pushpull":{pushpull_id},
"name":"a nice tag here"
}"
Editing a MediaTags by CURL (Using cURL to Windows):
curl -i --request PATCH "https://api.botdoc.io/v1/module_container_pushpull/mediatag/{tag_id}/" \
--header "Authorization: Autorization Key" \
--header "Content-Type: application/json" \
--data-raw "{
"name":"a nice tag here"
}"
Deleting a MediaTags by CURL (Using cURL to Windows):
curl -i --request DELETE "https://api.botdoc.io/v1/module_container_pushpull/mediatag/{tag_id}/" \
--header "Authorization: Autorization Key" \
--header "Content-Type: application/json" \
--data-raw ""
You Can’t add/edit a tag if the state of PushPull was “complete” or “expired”.