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| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Required | — | Target asset GUID. |
| readme | string | Optional | — | Markdown or plain text documentation for buyers. |
| allowedLicenseSlugs | string[] | Optional | — | Array 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"
]
}