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¶
wid
(required): the id of the workspaceoid
(required): the id of the orgtid
(required): the id of the galleryTemplate
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"-H "Content-type: 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>
See also
- appliance
- galleryTemplate
- Workspace API Resources
- workspace
- workspaceTemplateInstallProfile_get
- workspaceTemplateLogo_delete
- workspaceTemplateLogo_download
- workspaceTemplateLogo_upload
- workspaceTemplateOSPkgs_get
- workspaceTemplateProjects_get
- workspaceTemplateShare_cancel
- workspaceTemplateStats_get
- workspaceTemplateStatus_get
- workspaceTemplateStudio_get
- workspaceTemplate_delete
- workspaceTemplate_get
- workspaceTemplate_getAll
- workspaceTemplate_share
- workspaceTemplate_update
- Workspace Template Comments API Resources