API Methods
Account ...
Blogs ...
Bookings ...
CreditHistory ...
Dashboard ...
DirectCam ...
DirectChat ...
Email ...
FieldReport ...
Groups ...
HotLists ...
Interview ...
Lists ...
Movie ...
Newsfeed ...
PhoneChat ...
Pictures ...
Profile ...
Search ...
Tours ...
Webcam ...

Update Blocked Senders

This API operation updates a blocked senders of the authenticated user.

URL / Endpoint

Need help with Postman?

PUT /v1/Email/BlockedSendersUpdate

Request

PropertyTypeDescription
BlockID integer Required. The ID of the block.
RemoveBlock boolean If you wish to remove the block set this value to true.
BlockBookings boolean If all emails should be blocked when creating a Escort, Webcam and Phone Chat booking set this to true.
BlockSales boolean If all emails should be blocked when Sales and Auction purchase has been made set this to true.
BlockDirectChat boolean If all emails should be blocked when a DirectChat call is made set this to true.
Reason string The reason of the block.

Request Information

HTTP Method / Verb

Parameters can be passed to this operation using the HTTP PUT method with serialized JSON in the request body.

Headers

The REST API uses HTTP request headers to determine what data type is returned or to authenticate the developer's API key. More information can be found in the overview section.

Authentication

An Authorization header is required with every request and must contain the access_token of the user. More information can be found in the Access tokens page.

Scopes

This endpoint requires the following scope:

Scope
account_communications

Samples

PUT method

https://api-sandbox.adultwork.com/v1/Email/BlockedSendersUpdate

Authorization: bearer {your-access-token}
{ "BlockID" : 1, "BlockBookings": true, "BlockSales" : false, "BlockDirectChat" : false, "Reason": "Spammer" }

Response

PropertyTypeDescription
This will return no model just a 200 OK HTTP Status code.

Response Sample

The following example shows a sample returned by the API.

HTTP Status Code: 200 OK