Developers
Menu
POSThttps://streetartcities.com/api/edits/evaluate-permissions

Find out whether a change would be applied straight away or queued for review, and whether you could accept it yourself, before submitting it. Changes made through third-party apps are never applied straight away.

Request body

entityTypestringrequired

The kind of entity being changed. city and site mean the same thing; edits are returned with site.

Allowed values:markerartistsitetagcalendar-eventcommunity-notecity

entityIdstring
actionsobject

A map of changes. Keys are dot-paths into the entity (e.g. title or attributes.access_note). Values are either a literal to set, or an operation: { "$add": [...], "$remove": [...] } for arrays, or { "$unset": true } to remove a field. The special keys $mergeInto (another entity id), $delete (true, must be the only action) and $renameTo (a new name, tags only, not combined with $mergeInto) merge, delete or rename an existing entity.

Requirements

Needs an access token. When using OAuth, the token needs the edits:write scope.

Responses

200 Whether the edit would be auto-accepted

autoAcceptbooleanrequired

Whether the edit would be applied straight away. Always false for third-party apps.

canAcceptbooleanrequired

Whether you could accept the edit yourself.

reasonstring

400 Invalid request

errorstringrequired

401 Not logged in

errorstringrequired

403 No permission

errorstringrequired

404 Not found

errorstringrequired