Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

All metadata object types are based on a common template.

The keys in this template are necessary to uniquely identify the object and store it in a database. Most of these keys are automatically generated by the application.

Syntax example

Code Block
titleCommon metadata object syntax
{
    "id": "abcdefgh12345678",
    "name": "my_view",
    "type": "view",
    "title": "My view",
    "description": "In this view, you'll see a lot of interesting things.",
    "origin": "https://secure.clevermaps.io/rest/projects/$projectId/md/datasets?name=view_name",
    "content": {
       ...
    },
    "accessInfo": {
        "createdAt": "2017-01-01T00:00:00Z",
        "createdBy": "tomas.schmidl@clevermaps.io",
        "modifiedAt": "2017-01-02T00:00:00Z"
        "modifiedBy": "tomas.schmidl@clevermaps.io"
    },
	"links": [
        {
            "rel": "self",
            "href": "/rest/projects/$projectId/md/views/abcdefgh12345678"
        }
    ]
}
Info
iconfalse

(lightbulb)  The example above is a view object that has been imported by CleverMaps Shell.

Key description

...

a 16-byte long unique string 

...

Status
colourRed
titlerequired

name of the object

...

Status
colourRed
titlerequired

...

type of the object

...

description

...

Status
colourGreen
titleoptional

...

Status
colourYellow
titlevaries

...

actual content of the metadata object

mandatory in all object types except datasets, they have a ref key

...

array containing links identifying the object (self link)

accessInfo

...

timestamp of the last time the object was modified

...

Panel
panelIconId1f389
panelIcon:tada:
panelIconText🎉
bgColor#E3FCEF

The content you are trying to reach has been moved here: https://docs.clevermaps.io/docs/common-syntax

We are proud to announce that we have launched a new documentation.

Please update your saved links and bookmarks to follow a new address docs.clevermaps.io.