The API also makes it possible to remove (unpublish) a previously published assignments.
In the endpoint below, [id] should be replaced with the ID-number of the ad to be unpublished. So to unpublish ad with ID 2232, the endpoint should be /api/DistributionApi/Unpublish/2232
The Brainville API will respond to the HTTP POST in the following manner:
If the post was successful, the response will be HTTP Status 200 (OK).
Bad XML – If the XML is malformed, a HTTP Status 400 (Bad Request) will be returned.
Incorrect assignment Id – a HTTP Status 404 (Not found) will be returned