Fandom

Resighting Wiki

RemoveLocatorSighting Method

71pages on
this wiki
Add New Page
Comments0 Share

Remove a Sighting from a locator.

The locator and the Sighting are specified by the locator Id, user Id and Sighting Id in the url. If the locator does not exist, the Sighting does not exist, or if the Sighting is not in the locator then a method_not_found (404) error is returned.

Only the user who submitted the Sighting to the locator may remove it, otherwise a permission_denied error is returned.

Url: https://resighting-api.appspot.com/api/1/locators/<locator_id>/sightings/<user_id>/<sighting_id>/remove

HTTP Method: POST

ParametersEdit

Name Type Mandatory Description
access_token String(32) Yes A valid access token.
sandbox Boolean No Whether the method should run in sandbox mode - no writes will be made to the datastore.

ReturnsEdit

Returns a LocatorSighting object and HTTP status 200, or an Error object and HTTP status 4xx or 5xx. If the sandbox parameter was set then the returned object will contain dummy data and a boolean attribute named sandbox which will have the value True. See the section on sandboxing for more details.

Example UsageEdit

curl https://resighting-api.appspot.com/api/1/locators/118001/sightings/bf10ad015e7b4ceea9279c1b9e8889a5/1912002/remove --data access_token=ACCESS_TOKEN

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.