Versions Compared

Key

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

All metadata object types are based on a common template.

...

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.cleveranalyticsclevermaps.comio/rest/projects/$projectId/md/datasets?name=view_name",
    "content": {
       ...
    },
    "accessInfo": {
        "createdAt": "2017-01-01T00:00:00Z",
        "modifiedAt": "2017-01-02T00:00:00Z"
    },
	"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 CleverAnalytics Shell CleverMaps Shell.

Key description

KeyTypeOptionalityDescriptionConstraints
idstring

Status
colourBlue
titlegenerated

a 16-byte long unique string 

(a-z0-9)
namestring

Status
colourRed
titlerequired

name of the object

must be unique across the project, must bethe same as the .json filename

(a-z0-9_-)
typestring

Status
colourRed
titlerequired

type of the object

[dashboard, dataPermissiondataset, exportindicator, indicatorDrill, marker, markerSelector, metric, projectSettingsview]
titlestring

Status
colourGreen
titleoptional

human-readable title of the object(*)

description

string
Status
colourGreen
titleoptional
human-readable description of the object(*)
originstring
Status
colourBlue
titlegenerated
URL that indicates the original location of an imported object(*)
contentobject
Status
colourYellow
titlevaries

actual content of the metadata object

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


accessInfoobject
Status
colourBlue
titlegenerated
metadata about the access to the object
linksarray
Status
colourBlue
titlegenerated

array containing links identifying the object (self link)


accessInfo

KeyTypeOptionalityDescriptionConstraints
createdAtstring
Status
colourBlue
titlegenerated
timestamp of the first submission of the object to the project(*)
modifiedAtstring
Status
colourBlue
titlegenerated

timestamp of the last time the object was modified

(*)

...