$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "segments_csv": "segment_id,file,locale,source,target\r\ns1,app.json,fr-FR,\"Welcome, {name}. You have 2 files.\",\"Bienvenue. Vous avez 3 fichiers.\"\r\ns2,app.json,fr-FR,Open the help center,Ouvrir le centre d'aide\n",
< "glossary_csv": "source_term,target_term,case_sensitive,required\r\nfiles,fichiers,false,true\r\n",
< "policy_json": "{\r\n \"schema_version\": \"localization-qa-policy@1\",\r\n \"translation_required_locales\": [\r\n \"fr-FR\"\r\n ],\r\n \"maximum_length_ratio\": 2.0,\r\n \"require_number_parity\": true,\r\n \"require_url_parity\": true,\r\n \"maximum_segments\": 50000\r\n}\r\n"
<}
<EOF
$curl "https://api.apify.com/v2/actors/biztoolsus~localization-structure-qa/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'