Donate using PayPal

CycleStreets API (v2)

  • Details for:
  • API overview
  • Obtain API key
  • Usage policy
  • Uptime policy

Update photo

This API call updates an existing location in the Photomap, e.g. to change details such as category, caption, etc.

The API call is very similar to the photomap.add call. The only difference is that an id, representing the location number, must be specified.

The call updates only the values for the supplied fields. For instance, if the location has a photo already and the update does not supply a new photo, the existing photo will not be removed.

Valid user credentials must be supplied, as with photomap.add.


Example which updates an existing location.

In this example, only the caption and additional metadata are being updated. All other existing data will be unmodified.

	[id] => 64001
	[username] => myusername
	[password] => mypassword1978
	[caption] => This location serves the nearby shops. There has recently been an increase in the number of stands.
	[additionalMetadata] => {"spaces":20,"covered":"no","highway":"Red route"}


    "id": 64001,
    "url": "",
    "shortlink": "",
    "imageUrl": "",
    "thumbnailUrl": ""

Request parameters - required

id int
The location ID.
username string
The username or e-mail address of a user (whose account has been through validation). The API call will use the username/password credentials to perform authentication. If you are creating a third-party auditing-style application, it is fine to register a single user account and all submissions be made as that user.
password string
The password for this user. See details for username.

For other parameters, see documentation for photomap.add.

Request parameters - optional

Any of the fields supported by photomap.add (as listed in the required/recommended/optional parameter sections) can be supplied to updated their value(s).

Note that, currently, additionalMetadata must be (re-)supplied as a complete collection if any part of it needs to be updated. We hope to remove this limitation shortly.

There is no support in this API call for updating the username that 'owns' the location. Note that if an update is performed using a privileged (admin) account, the original username of the submitter is maintained.


As shown above, the response is the same as the example in photomap.add.

Error response

JSON object containing an error key and a text string.

Example error (text string will vary):

    "error": "You do not appear to have rights to update this location."

We welcome your feedback, especially to report bugs or give us route feedback.

My comments relate to: *

Your comments: *
URL of page: *
How did you find out about CycleStreets?:
Your name:
Our ref: Please leave blank - anti-spam measure

* Items marked with an asterisk [*] are required fields and must be fully completed.