cancel
Showing results for 
Search instead for 
Did you mean: 

Subject Json Format on Rest API

Lynn_
Champ on-the-rise
Champ on-the-rise

Hi,

I want to make a call onto the REST API to create some documents but I am unsure what format I should provide for the subjects (the only examples I can find online are empty lists, like the one below).

"properties": {
/> "dc:title": "title", "dc:description":"Description", "dc:subjects": []
/> }

Can you please provide me with the format to populate subjects?

Thanks, Lynn

1 REPLY 1

Damien_Metzler
Star Contributor
Star Contributor

Hello,

the dc:subjects property is an array of string, so you just have to use the JSON array notation like

"dc:subject":["art","litterature"]

If you want to see what is the correct representation for other types, you can change the data in nuxeo DM and query the doc with the REST API : then you'll get the correct format

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.