linkThe product object
Below you will find the various attributes for the product resource, as well as the product resource's relationships.
linkAttributes
linkdata.attributes.code
stringThe unique code, or 'slug', for the product. The code cannot collide with any products that already exist.
linkdata.attributes.url
stringA related URL for the product e.g. the marketing website, company website, etc.
linkdata.attributes.distributionStrategy
stringdefault=LICENSEDThe strategy for distributing releases.
Options
LICENSED
: Only licensed users, with a valid license, can access releases and release artifacts. API authentication is required.OPEN
: Anybody can access releases. No API authentication required, so this is a great option for rendering releases on a public downloads page, open source projects, or freemium products.CLOSED
: Only admins can access releases. Download links will need to be generated server-side. API authentication is required.
linkRelationships
linkdata.relationships.environment
individualent onlyThese relationships are only available for accounts on an Ent tier.The environment that the product belongs to.
Example object
{ "data": { "id": "31339351-f7f5-4bdd-8346-5d8399a1ac07", "type": "products", "links": { "self": "/v1/accounts/<account>/products/31339351-f7f5-4bdd-8346-5d8399a1ac07" }, "attributes": { "name": "Example App", "code": "example", "distributionStrategy": "OPEN", "url": "https://example.com", "platforms": [], "metadata": {}, "created": "2017-01-02T20:26:53.464Z", "updated": "2017-01-02T20:26:53.464Z" }, "relationships": { "account": { "links": { "related": "/v1/accounts/<account>" }, "data": { "type": "accounts", "id": "<account>" } }, "policies": { "links": { "related": "/v1/accounts/<account>/products/31339351-f7f5-4bdd-8346-5d8399a1ac07/policies" } }, "licenses": { "links": { "related": "/v1/accounts/<account>/products/31339351-f7f5-4bdd-8346-5d8399a1ac07/licenses" } }, "machines": { "links": { "related": "/v1/accounts/<account>/products/31339351-f7f5-4bdd-8346-5d8399a1ac07/machines" } }, "users": { "links": { "related": "/v1/accounts/<account>/products/31339351-f7f5-4bdd-8346-5d8399a1ac07/users" } }, "tokens": { "links": { "related": "/v1/accounts/<account>/products/31339351-f7f5-4bdd-8346-5d8399a1ac07/tokens" } } } }}