curl --request PATCH \
--url https://api.kelviq.com/api/v1/catalog/plans/{identifier}/file/{pk}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Plan Terms (v2).pdf",
"ordering": 1,
"enabled": true
}
'{
"id": "7a3e3411-cef0-4f4e-bdb6-1f74a4f4d2c0",
"name": "Plan Terms.pdf",
"file": "media/.../plans/<id>/<uuid>/terms.pdf",
"ordering": 0,
"enabled": true,
"downloadUrl": "https://api.kelviq.com/api/v1/catalog/plans/pro-monthly/file/7a3e3411-cef0-4f4e-bdb6-1f74a4f4d2c0/download/"
}Updates display metadata on a plan file (name, ordering, enabled). If the plan’s latest version is published, a new draft version is created and the file is updated on the new draft.
curl --request PATCH \
--url https://api.kelviq.com/api/v1/catalog/plans/{identifier}/file/{pk}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Plan Terms (v2).pdf",
"ordering": 1,
"enabled": true
}
'{
"id": "7a3e3411-cef0-4f4e-bdb6-1f74a4f4d2c0",
"name": "Plan Terms.pdf",
"file": "media/.../plans/<id>/<uuid>/terms.pdf",
"ordering": 0,
"enabled": true,
"downloadUrl": "https://api.kelviq.com/api/v1/catalog/plans/pro-monthly/file/7a3e3411-cef0-4f4e-bdb6-1f74a4f4d2c0/download/"
}Documentation Index
Fetch the complete documentation index at: https://docs.kelviq.com/llms.txt
Use this file to discover all available pages before exploring further.
The Server API Key obtained from the kelviq application. Pass as a Bearer token in the Authorization header. Example: 'Authorization: Bearer YOUR_API_KEY'
Updated plan file.
"7a3e3411-cef0-4f4e-bdb6-1f74a4f4d2c0"
"Plan Terms.pdf"
"media/.../plans/<id>/<uuid>/terms.pdf"
0
true
URL clients can hit to download the file. Will redirect to a forced-download URL.
"https://api.kelviq.com/api/v1/catalog/plans/pro-monthly/file/7a3e3411-cef0-4f4e-bdb6-1f74a4f4d2c0/download/"