curl --request POST \
--url https://cloud.activepieces.com/api/v1/pieces \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"packageType": "ARCHIVE",
"scope": "PLATFORM",
"pieceName": "<string>",
"pieceVersion": "<string>",
"pieceArchive": {
"filename": "<string>",
"data": "<unknown>",
"type": "file",
"mimetype": "<string>"
}
}
'