@Kal_Lam I want to upload in My Library . I have folder in My library for the country space . how can i upload/migrate directly there?
@meetthkaer, you could do this in two steps as outlined below:
Step 1: Create an asset with asset_type set to a library type. You could do this with the following cURL command:
curl -s -X POST "https://<your-kobo-server-url>/api/v2/assets/?format=json" \
-H "Authorization: Token $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Your Library Form Name",
"asset_type": "template"
}'
Step 2: Import the XLSForm content into that asset by using the following cURL command:
curl -s -X POST "https://<your-kobo-server-url>/api/v2/imports/?format=json" \
-H "Authorization: Token $TOKEN" \
-F "destination=https://<your-kobo-server-url>/api/v2/assets/<uid>/" \
-F "file=@/path/to/your/form.xlsx"
Thank you @Kal_Lam It worked! thank you for your support
