MediaMath Platform API
MediaMath Platform API
curl -i -X POST \
'https://apidocs.mediamath.com/attachments/{attachment_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"target_id": 0,
"version": 0,
"strategy_id": 1,
"restriction": "INCLUDE",
"operator": "OR",
"or_better": true
}'
{ "data": { "id": 1, "entity_type": "string", "target_id": 0, "strategy_id": 1, "restriction": "INCLUDE", "operator": "OR", "created_on": "string", "updated_on": "string", "version": 0, "or_better": true }, "meta": { "status": "success" } }
curl -i -X DELETE \
'https://apidocs.mediamath.com/attachments/{attachment_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
curl -i -X GET \
'https://apidocs.mediamath.com/attachment/{attachment_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "data": { "id": 1, "entity_type": "string", "target_id": 0, "strategy_id": 1, "restriction": "INCLUDE", "operator": "OR", "created_on": "string", "updated_on": "string", "version": 0, "or_better": true }, "meta": { "status": "success" } }