Docs/REST API/api_vendor_set_licensing
PATCH/api/v1/vendor/assets/{id}/licensingAuthorization: Bearer <token>

Set Licensing & README

Configure license restrictions and authored installation guidance.

Description

Sets the allowed license tiers for purchase and the README.txt documentation packaged in buyer downloads.

Parameters

3 parameters
ParameterTypeRequiredDefaultDescription
idstringRequiredTarget asset GUID.
readmestringOptionalMarkdown or plain text documentation for buyers.
allowedLicenseSlugsstring[]OptionalArray of permitted license slugs (e.g. ['personal', 'commercial', 'extended']).

Request Example

curl -X PATCH https://api.trykrafto.xyz/api/v1/vendor/assets/6f94726b-67a3-41bb-a5a4-927429beecfa/licensing \
  -H "Authorization: Bearer kr_live_token..." \
  -H "Content-Type: application/json" \
  -d '{
    "readme": "# Thank you for purchasing Quantum Sans\n\nCommercial license included.",
    "allowedLicenseSlugs": ["commercial", "extended"]
  }'

Response Example

application/json (200 OK)
{
  "id": "6f94726b-67a3-41bb-a5a4-927429beecfa",
  "allowedLicenseSlugs": [
    "commercial",
    "extended"
  ]
}