{"__v":1,"_id":"54524fc904160008005b1d29","category":{"__v":5,"_id":"54524f9704160008005b1d27","pages":[],"project":"542dbe0ecb19820800c1f4d7","version":"542ecc0a6b0eb6080066ca77","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-30T14:47:51.258Z","from_sync":false,"order":20,"slug":"fraud-control","title":"Fraud Control"},"editedParams":true,"editedParams2":true,"is_link":false,"parentDoc":null,"project":"542dbe0ecb19820800c1f4d7","user":"542dc547cb19820800c1f4f1","version":{"__v":31,"_id":"542ecc0a6b0eb6080066ca77","forked_from":"542dbe0fcb19820800c1f4da","project":"542dbe0ecb19820800c1f4d7","createdAt":"2014-10-03T16:17:14.165Z","releaseDate":"2014-10-03T16:17:14.165Z","categories":["542ecc0a6b0eb6080066ca78","542ef44f6b0eb6080066cb24","543bf3e22a30961a00b66eb3","5446952b82bd7e08002768a0","544821ae8d7af31a00dd41ce","544a7885f1aefa08006efc69","544c758e11845f0e001ed8de","544e5565b80812080035be55","544e558dbd51b9080037f8ca","5450b045a66f020800dba73d","5450eb6aa66f020800dba945","5450f39ea66f020800dba989","5450f877a66f020800dba9cf","54510356a66f020800dbaa17","5451274514af501a00b50c99","54513345a66f020800dbab24","54513cc014af501a00b50d24","54515eec14af501a00b50db9","54519b1d14af501a00b50ea9","54519b2aa66f020800dbacb4","54524f9704160008005b1d27","54538d2308d1800800473d95","54538d420c09721000a06a03","54538e5608d1800800473d9a","5453ea9547c30114004fb375","5453eb12b077c31c00067bcb","5453eb27b077c31c00067bcd","5453ed5db077c31c00067bde","548075cbe291c51a00e7e096","5922fa475c48c70f00f21453","59244fd41e32eb190028ad8d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-10-30T14:48:41.263Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"basic_auth":true,"method":"post","results":{"codes":[{"name":"","code":"{\n  \"blocked\": {\n    \"is_lock\": false,\n    \"mobile_enabled\": true,\n    \"landline_enabled\": true,\n    \"date_updated\": \"Wed, 05 Nov 2014 15:14:34 -0000\",\n    \"country_code\": \"HR\",\n    \"sid\": \"FRbf8890849dc9b288ff6540beb6026004\",\n    \"country_name\": \"Croatia\",\n    \"date_created\": \"Wed, 05 Nov 2014 15:14:34 -0000\",\n    \"sms_enabled\": true,\n    \"country_prefix\": \"+385\"\n  }\n}","language":"json","status":200},{"name":"","code":"{\n    \"status\": 404,\n    \"message\": \"The requested resource was not found: /v2/Accounts/bad/bad_response.json\"\n}","language":"json","status":404}]},"try":true,"auth":"required","params":[{"_id":"545250cb3f92fc0e009395c2","ref":"","in":"path","required":true,"desc":"Account SID.","default":"","type":"string","name":"AccountSid"},{"_id":"545250cb3f92fc0e009395c1","ref":"","in":"path","required":true,"desc":"Country code.","default":"","type":"string","name":"CountryCode"},{"_id":"545250cb3f92fc0e009395c0","ref":"","in":"body","required":false,"desc":"Mobile status for the destination. If false, all mobile call activity will be rejected or disabled. Allowed values are \"true\" and \"false\".","default":"true","type":"string","name":"MobileEnabled"},{"_id":"545250cb3f92fc0e009395bf","ref":"","in":"body","required":false,"desc":"Landline status for the destination. If false, all landline call activity will be rejected or disabled. Allowed values are \"true\" and \"false\".","default":"true","type":"string","name":"LandlineEnabled"},{"_id":"545250cb3f92fc0e009395be","ref":"","in":"body","required":false,"desc":"SMS status for the destination. If false, all SMS activity will be rejected or disabled. Allowed values are \"true\" and \"false\".","default":"true","type":"string","name":"SmsEnabled"}],"url":"/v2/Accounts/:AccountSid/Fraud/Block/:CountryCode.json"},"isReference":false,"order":0,"body":"# **Response Parameters**\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Parameter\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"is_lock\",\n    \"1-0\": \"mobile_enabled\",\n    \"2-0\": \"landline_enabled\",\n    \"3-0\": \"date_updated\",\n    \"4-0\": \"country_code\",\n    \"5-0\": \"sid\",\n    \"6-0\": \"country_name\",\n    \"7-0\": \"date_created\",\n    \"8-0\": \"sms_enabled\",\n    \"9-0\": \"country_prefix\",\n    \"1-1\": \"Mobile status for the destination. If false, all mobile call activity will be rejected or disabled.\",\n    \"2-1\": \"Landline status for the destination. If false, all landline call activity will be rejected or disabled.\",\n    \"8-1\": \"SMS status for the destination. If false, all SMS activity will be rejected or disabled.\",\n    \"6-1\": \"Name of the country.\",\n    \"9-1\": \"Prefix of the destination being blocked.\",\n    \"7-1\": \"The date this block was created.\",\n    \"3-1\": \"The date this block was last updated.\",\n    \"4-1\": \"Two letter country code being whitelisted, authorized or blocked.\",\n    \"5-1\": \"An alphanumeric string identifying this resource.\",\n    \"0-1\": \"Specifies whether the destinations permission state (blocked, whitelisted, etc.) has been locked by our system. Currently, the US is locked as a whitelisted destination.\"\n  },\n  \"cols\": 2,\n  \"rows\": 10\n}\n[/block]\n# **Example cURL**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -X POST 'https://api.telapi.com/v2/Accounts/{AccountSid}/Fraud/Block/{CountryCode}.json' -u '{AccountSid}:{AuthToken}' -d 'MobileEnabled=true'\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]","excerpt":"restricts outbound calls and sms messages to some destination","slug":"block-destination","type":"endpoint","title":"Block Destination"}

postBlock Destination

restricts outbound calls and sms messages to some destination

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

AccountSid:
required
string
Account SID.
CountryCode:
required
string
Country code.

Body Params

MobileEnabled:
stringtrue
Mobile status for the destination. If false, all mobile call activity will be rejected or disabled. Allowed values are "true" and "false".
LandlineEnabled:
stringtrue
Landline status for the destination. If false, all landline call activity will be rejected or disabled. Allowed values are "true" and "false".
SmsEnabled:
stringtrue
SMS status for the destination. If false, all SMS activity will be rejected or disabled. Allowed values are "true" and "false".

Result Format


Documentation

# **Response Parameters** [block:parameters] { "data": { "h-0": "Parameter", "h-1": "Description", "0-0": "is_lock", "1-0": "mobile_enabled", "2-0": "landline_enabled", "3-0": "date_updated", "4-0": "country_code", "5-0": "sid", "6-0": "country_name", "7-0": "date_created", "8-0": "sms_enabled", "9-0": "country_prefix", "1-1": "Mobile status for the destination. If false, all mobile call activity will be rejected or disabled.", "2-1": "Landline status for the destination. If false, all landline call activity will be rejected or disabled.", "8-1": "SMS status for the destination. If false, all SMS activity will be rejected or disabled.", "6-1": "Name of the country.", "9-1": "Prefix of the destination being blocked.", "7-1": "The date this block was created.", "3-1": "The date this block was last updated.", "4-1": "Two letter country code being whitelisted, authorized or blocked.", "5-1": "An alphanumeric string identifying this resource.", "0-1": "Specifies whether the destinations permission state (blocked, whitelisted, etc.) has been locked by our system. Currently, the US is locked as a whitelisted destination." }, "cols": 2, "rows": 10 } [/block] # **Example cURL** [block:code] { "codes": [ { "code": "curl -X POST 'https://api.telapi.com/v2/Accounts/{AccountSid}/Fraud/Block/{CountryCode}.json' -u '{AccountSid}:{AuthToken}' -d 'MobileEnabled=true'", "language": "shell" } ] } [/block]