Create a project for a person
POST
/users/{uid}/projects/newCreates a project in the account of a member of your organisation, or in your own when
uid is your account's ID. The project is created view only, so it can be
embedded straight away.Path parameters
uidstringrequiredThe ID of a member of your organisation, or your own account's ID.
Request body application/json
Fields of PersonProjectCreate:
namestringdescriptionstringcomments_enabledbooleandefault_product_idstringA product of the catalogue that new shapes start with.parentIdstringA folder the person owns or is a member of.membersarray of stringAccounts of your organisation that can open the project.at most 200 items
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.
401
unauthorized_actionThe item is not on your account or your members', the request came from a web page on a website the key does not allow, or the action is not allowed for this person.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.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.
The ID of a member of your organisation, or your own account's ID.
POST https://api.measuremaponline.com/api/v1/users/m3K8qZxLpV4NrT2w/projects/newFill in your API key to send.
As a cURL command
curl -X POST 'https://api.measuremaponline.com/api/v1/users/m3K8qZxLpV4NrT2w/projects/new' \
-H "Authorization: $MMO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "14 Harbour Road",
"description": "Front and back lawns",
"comments_enabled": true
}'