workspaceTemplate_vote

POST /orgs/{oid}/workspaces/{wid}/templates/{tid}/vote

Post a rating for a shared appliance template. The valid rating numbers is between 1 and 5.

If the user has already voted then their current vote value will be updated.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: appliance_create

URI Parameters

HTTP Request Body Parameters

A voteStat object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/workspaces/{wid}/templates/{tid}/vote" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml" --data-binary "@representation.xml"

Example of representation.xml content (the request body):

<ns0:voteStat xmlns:ns0="http://www.usharesoft.com/uforge">
        <rating>3</rating>
</ns0:voteStat>