Specific information about entities:
The current JSON Schema for ovos play content packages, is available at https://app.ovosplay.com/api/import-schema.json
You can add a "$schema": "https://app.ovosplay.com/api/import-schema.json"
property to your content package json file,
to get validation/auto-completion in your IDE.
Every content packages data.json
should include a meta
information object.
It contains the following properties:
internal
: boolean Whether this content package has been created by ovos play code.tenant
: *(optional)*string the tenant from which the content package was createdinstanceTag
: *(optional)*string the instance tag is used to differentiate between different tenant instances or stages of content (e.g.stage
,production
)time
: *(optional)*string timstamp of when the content package has been created (e.g.""2022-01-31T11:28:39.182Z"
)version
: *(optional)*number the version of the exporter which created this content package
With the content importer, you can create a library structure, decks and cards.
Example without any actual content:
{
"$schema": "https://app.ovosplay.com/api/import-schema.json",
"meta": {
"time": "2022-02-16T09:02:41.513Z",
"version": 3
},
"cards": [],
"decks": [],
"library": []
}
In order to allow ovos play to recognize if imported content should be updated instead of added, the refId
property is used.
When the refId
property of an element does not change, and it already exists in ovos play, the imported content will update the existing item instead of create a new one.
The format should be like this:
"refId": "clientName/source:itemType:itemId"
In ovos play, this is stored as the external_reference_id
for each imported element.