...
Code Block |
---|
|
{
"first_name": "John",
"last_name": "Smith"
} |
Example how to create a Container Recipient by cURL:
Code Block |
---|
|
curl -i --request POST "https://api.botdoc.io/v1/module_container/container/{container_id}/recipient/" \
--header "Authorization: JWT <Authorization Token>" \
--header "Content-Type: application/json" \
--data-raw "{
"first_name": "John",
"last_name": "Smith"
}
" |
...
Code Block |
---|
|
{
"interface_class": "email", //can be "email" or "sms"
"value": "myemail@botdoc.io"
} |
Example how to create a Container Recipient Item by cURL:
Code Block |
---|
|
curl -i --request POST "https://api.botdoc.io/v1/module_container/recipient/{recipient_id}/recipient_item/" \
--header "Authorization: JWT <Authorization Token>" \
--header "Content-Type: application/json" \
--data-raw "{
"interface_class": "email",
"value": "myemail@botdoc.io"
}
" |
...