Skip to content

Working with Metadata

You can create or update metadata. A custom metadata can be added while uploading the object. Once the object is uploaded, default system metadata will be attached.

If tenant is operating for a subtenant object, the subtenant should be specified in the request query parameter.

Maximum 8 tags are allowed, where each tag can have a maximum of 128 characters.

Assign Metadata to an object

1
PUT /objectMetadata/myfolder/mysubfolder/myobject.objext
1
Content-Type: application/json

Request example:

1
2
3
4
5
6
7
{
  "tags": [
    "tag1",
    "tag2",
    "tag3"
  ]
}

Response example

1
Status 201 Created

Get metadata of an object

1
GET /objectMetadata/myfolder/mysubfolder/myobject.objext
1
Content-Type: application/json

Response example:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
  "name": "myobject.objext",
  "location": "myfolder/mysubfolder/myobject.objext",
  "size": 25,
  "lastModified": "2018-10-03T09:21:36.559Z",
  "tags": [
    "tag1",
    "tag2",
    "tag3"
  ],
  "subtenantId": "204a896c-a23a-11e9-a2a3-2a2ae2dbcce4"
}

Any questions left?

Ask the community


Except where otherwise noted, content on this site is licensed under the MindSphere Development License Agreement.