Claim an unclaimed workspace and become its admin
const url = 'https://example.com/api/v1/workspace/claim';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/workspace/claimOnly an OpenStreetMap account named in CSO_BOOTSTRAP_ADMIN_OSM_UIDS can claim, and only
once: the update that records the owner succeeds for the first caller and is refused for
everyone after. The session becomes admin.
Responses
Section titled “Responses”Successful Response
Identity of the caller and the runtime mode.
object
Example
{ "can_claim": false, "mode": "replay", "osm_signin": false, "role": "viewer", "via_osm": false}Unauthorized
Application/problem+json body. Extension members (for example job_id) are allowed.
object
One validation failure: where, what, and a stable machine code (never the input value).
object
Example
{ "type": "about:blank"}Forbidden
Application/problem+json body. Extension members (for example job_id) are allowed.
object
One validation failure: where, what, and a stable machine code (never the input value).
object
Example
{ "type": "about:blank"}Conflict
Application/problem+json body. Extension members (for example job_id) are allowed.
object
One validation failure: where, what, and a stable machine code (never the input value).
object
Example
{ "type": "about:blank"}Map data © OpenStreetMap contributors, under the Open Database Licence. Code under the Apache-2.0 licence. Made by Yogesh.
Changeset Second Opinion is an independent open source tool for OpenStreetMap reviewers. It is not endorsed by, sponsored by or affiliated with the OpenStreetMap Foundation. OpenStreetMap is a trademark of the OpenStreetMap Foundation, used under itstrademark policy.