META

Queries for managing assets

Hint

There is no method to retrieve assets directly; assets are returned by the project method getProjects

createAsset

http://your.server/ramses/?createAsset

Creates a new asset in the database and assigns it to an asset group.

Query attributes:

Reply content:

Empty

Reply body:

{
    "accepted": true,
    "query": "createAsset",
    "success": true,
    "message": "Asset \"TRI\" created.",
    "content": { }
}

updateAsset

http://your.server/ramses/?updateAsset

Update asset info in the database.

Query attributes:

Reply content:

Empty

Reply body:

{
    "accepted": true,
    "query": "updateAsset",
    "success": true,
    "message": "Asset \"TRI\" updated.",
    "content": { }
}

removeAsset

http://your.server/ramses/?removeAsset

Removes an asset group from the database.

Query attributes:

Reply content:

Empty

Reply body:

{
    "accepted": true,
    "query": "removeAsset",
    "success": true,
    "message": "Asset uuid123 removed.",
    "content": { }
}

setAssetStatus

http://your.server/ramses/?setAssetStatus

Sets a new status for an asset

Query attributes:

Reply content:

Empty

Reply body:

{
    "accepted": true,
    "query": "setAssetStatus",
    "success": true,
    "message": "Asset status updated.",
    "content": { }
}