The following curl command is an example of publishing using the Upload content web service:
curl --request POST --form "file=@$MY_ARCHIVE.ZIP" --header 'Authorization: Bearer $API-KEY' https://doc.fluidtopics.com/api/admin/khub/sources/$SOURCE_ID/upload
The curl call should return the following response body:
{
"started": false,
"uuid": "",
"jobId": -1,
"uploadId": "90caa68a-0429-4064-a05c-dbda54b4d7de",
"reportApiEndpoint": "https://doc.fluidtopics.com/api/admin/khub/90caa68a-0429-4064-a05c-dbda54b4d7de/report?page=1&per_page=100"
}
The web service returns an HTTP 200 OK
response when an archive was correctly uploaded. However, publishing the archive to the portal can fail (missing DITAMAP file, etc.). See Monitor a publishing job.