Create a project
POST
/projects/newCreates a project in your own account.
On Open Guest, a project created with the access level open_guest is a guest
project: it counts towards your Open Guest usage and budget like one started from
your guest link, and its guest details are kept with it. Guest projects made with a
sandbox key are never counted or billed.
Request body application/json
Fields of ProjectCreate:
namestringThe project's name.descriptionstringaccess_levelstringprivatewhen left out.open_guestonly on an Open Guest plan, where it makes a billed guest project.One ofprivateview_onlypublicopen_guestcomments_enabledbooleanAllow comments on the map. Always on for guest projects.default_product_idstringA product of your catalogue that new shapes start with. Ignored when it is archived or hidden.parentIdstringA folder of yours to file it in; it takes on the folder's members.membersarray of stringAccounts of your organisation that can open the project.at most 200 itemsguestobjectThe guest's contact details, for an Open Guest project. Each is optional.
Responses
typestringrequiredAlways"project"idstringrequiredThe project's ID.creatorUidstringrequiredThe account that owns the project.folderIdstringor nullThe folder it is filed in; empty or absent at the top level.namestringrequireddescriptionstringcreatedOninteger(int64)requiredWhen it was created, in milliseconds since 1 January 1970 (UTC).thumbnailUrlstring(uri)A picture of the project's map, when one has been drawn.totalPolygonsintegerHow many areas and lines it holds.totalSpotsintegerHow many spots it holds.membersarray of stringThe accounts that can open it, its owner included.commentsEnabledbooleanWhether comments can be left on its map.defaultProductIdstringThe product new shapes start with.
Errors
A failed request answers with one of these, in an Error body.
402
budget_limit_reachedOpen Guest. Your budget limit for this billing period is reached, so no more guest projects are started until the next one or until you raise it.403
insufficient_scopeThe key does not have the access this endpoint needs. Create a key with that access.403
invalid_api_keyNo key was sent in the Authorization header, or the key is unknown, revoked, or past the time it kept working after being replaced.403
invalid_subscriptionYour plan has no API access. The API is part of the Enterprise and Open Guest plans.Try it
This key is
The key stays in this tab and goes only to the API. Use a sandbox key while you try things: requests are real, and what they change is changed.
POST https://api.measuremaponline.com/api/v1/projects/newFill in your API key to send.
As a cURL command
curl -X POST 'https://api.measuremaponline.com/api/v1/projects/new' \
-H "Authorization: $MMO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "14 Harbour Road",
"description": "Front and back lawns, quote by Friday",
"access_level": "view_only",
"comments_enabled": true,
"parentId": "fld_8Jk2LmQ4"
}'