Skip to main content
PATCH
Update a plan file

Authorizations

Authorization
string
header
required

The Server API Key obtained from the kelviq application. Pass as a Bearer token in the Authorization header. Example: 'Authorization: Bearer YOUR_API_KEY'

Path Parameters

identifier
string
required

Plan identifier.

pk
string<uuid>
required

Plan file UUID.

Body

application/json

Update display fields of a plan file. The underlying file cannot be replaced.

name
string
Example:

"Plan Terms (v2).pdf"

ordering
integer
Example:

1

enabled
boolean
Example:

true

Response

Updated plan file.

id
string<uuid>
read-only
Example:

"bf9f0fe0-c9c0-436d-8811-e412d0365470"

name
string
Example:

"custom-pricinig.png"

file
string<uri>
read-only
Example:

"https://cdn.kelviq.com/media/organizations/8/plan/1ad723d2-40eb-4bf0-b924-557e6697e788/53c28d460fed421a81f6c6e90114ff4f/custom-pricinig.png"

ordering
integer
Example:

0

enabled
boolean
Example:

true

downloadUrl
string<uri>
read-only

URL clients can hit to download the file. Will redirect to a forced-download URL.

Example:

"https://api.kelviq.com/api/v1/catalog/plans/10-july/file/bf9f0fe0-c9c0-436d-8811-e412d0365470/download/"