/deletephoto [POST]

Delete a specific photo for the current member - protected.

Parameters

  • photoid (numeric) [REQUIRED] - a valid photo ID

Response Message

403 Forbidden - if photoid is missing or invalid (e.g., does not identify a photo that belongs to the authorized member)

{ "fail" : "Invalid Argument" }

200 OK - success

The selected photo is deleted. A new primary photo is automatically selected if the deleted photo was the primary and there are other photos that are valid for use as a primary (otherwise the member will be shown to others with the default avatar).

{ user status information + `photos` }

This returns the User Status Information with an additional field, "photos", which has the result of GET /photo.