Skip to main content

Code package API

Manage server-side code using the Code Package API

FairCom products allow you to run JavaScript code on the server. The code package API allows you to manage server-side code including storing, modifying, versioning, activating, deactivation, reverting, deleting, undeleting, copying, listing, and describing server-side code.

This API documentation includes concepts, tutorials, and examples of server-side code. Use the following JSON actions to create and manage code packages for a FairCom server. These actions work for all FairCom products that include the FairCom database engine.

Action

Description

createCodePackage

stores server-side code on the server.

alterCodePackage

modifies, deactivates, activates, deletes. and undeletes a code package.

cloneCodePackage

stores a copy of a code package.

listCodePackages

lists the latest versions of a code package.

listCodePackageHistory

lists previous versions of a code package.

describeCodePackages

shows the code in a code package and lists where it runs.

describeCodePackageHistory

returns code package version and properties.

revertCodePackage

reverts a code package to a specified version.

Use the code packages API to insert and manage code running on the FairCom server

codePackages
code package
json admin api
jsonAction
codePackage
Would you like to provide feedback?