Email Consents
Operations related to Email Consents in Email Campaign
Find email consent selections
The id of the campaign from which to get the email consent selections
The id of the campaign blast from which to get the email consent selections
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/email_campaigns/{campaign_id}/email_blasts/{blast_id}/email_consents HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": [
{
"id": "text",
"name": "text",
"technical_name": "text",
"consent_id": "text"
}
],
"max_results": 1,
"count": 1,
"first_result": 1,
"total": 1
}Create email consent selection
The id of the campaign from which to create the email consent selection
The id of the campaign blast from which to create the email consent selection
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/email_campaigns/{campaign_id}/email_blasts/{blast_id}/email_consents HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"consent_id": "text"
}{
"status": "ok",
"data": {
"id": "text",
"name": "text",
"technical_name": "text",
"consent_id": "text"
}
}Find a specific email consent selection
The id of the campaign from which to create the email consent selection
The id of the campaign blast from which to create the email consent selection
The id of specific email consent selection you want to access
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/email_campaigns/{campaign_id}/email_blasts/{blast_id}/email_consents/{consent_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"id": "text",
"name": "text",
"technical_name": "text",
"consent_id": "text"
}
}Delete a specific email consent selection
The id of the campaign from which to create the email consent selection
The id of the campaign blast from which to create the email consent selection
The id of specific email consent selection you want to access
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/email_campaigns/{campaign_id}/email_blasts/{blast_id}/email_consents/{consent_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Last updated
Was this helpful?