REST API
Code
Replace a function's or library module's code with the REST API. Every change creates a new draft version.
Functions and their settings have their own page: Functions. This page covers the code itself.
#Replace code
PUT /api/projects/:id/code/:targetBody: { "code": "..." }. target is a function id (including before and after) or lib:<module name>.
#Library modules and packages
Scope for all of these: functions:write.