publishAPI is to publish a form definition.
PUTit via the persistence REST API. The reason for this is that publishing requires adding some information to the form definition, such as:
$document-id: Form Builder document id for retrieval of attachments
1if there is no published version
next: to indicate that the form definition must be published under the next available version
false: make or keep the form definition unavailable
trueor missing: make or keep the form definition available
POSTed as XML, form definition attachments such as PDF, XML Schema, or image attachments will not be published reliably if a
document-idis not passed.