# Process a zip file

## Zip Blur It Post

> Add a zip\_detect\_and\_blur task in task queue.\
> \
> returns a {"task\_id": str}

```json
{"openapi":"3.0.2","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/api/blur_it/zip":{"post":{"summary":"Zip Blur It Post","description":"Add a zip_detect_and_blur task in task queue.\n\nreturns a {\"task_id\": str}","operationId":"zip_blur_it_post_api_blur_it_zip_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ZipBody":{"title":"ZipBody","required":["input_zip","output_zip"],"type":"object","properties":{"input_zip":{"title":"Input zip storage informations","allOf":[{"$ref":"#/components/schemas/InputZip"}]},"output_zip":{"title":"Output zip storage informations","allOf":[{"$ref":"#/components/schemas/OutputZip"}]},"report_format":{"title":"Fomat of the report file. Set to null if you don't want a report file. Possible values: \"csv\", null","type":"string","default":"csv"},"save_unknown_files":{"title":"If set to True, unprocessable files extensions will be returned with processed files, in the output zip. If set to False, they will be deleted.","type":"boolean","default":false},"add_output_sufix":{"title":"If set to True, output files names will be suffixed (eg: \"file.jpg\" => \"file_anonymized.jpg\")","type":"boolean","default":true},"export_media":{"title":"Should we export the blured media ?","type":"boolean","default":true},"export_json":{"title":"Should we export the detections list ?","type":"boolean","default":true},"blur_plates":{"title":"Should we blur plates ?","type":"boolean","default":true},"blur_heads":{"title":"Should we blur heads ?","type":"boolean","default":true},"keep_audio":{"title":"Should we keep audio in the output media ?","type":"boolean","default":true}}},"InputZip":{"title":"InputZip","required":["protocol","path"],"type":"object","properties":{"protocol":{"title":"Must be 'file' (for local storage) or 's3' (for S3 storage)","type":"string"},"path":{"title":"File's relative path","type":"string"},"expires_at":{"title":"Input file's expiration date. Works only with S3 storage.","type":"string"},"auto_delete":{"title":"If set to True (or not set), deletes the input file after processing.","type":"boolean","default":true}},"description":"Output JSON file structure."},"OutputZip":{"title":"OutputZip","required":["protocol","path"],"type":"object","properties":{"protocol":{"title":"Must be 'file' (for local storage) or 's3' (for S3 storage)","type":"string"},"path":{"title":"File's relative path","type":"string"},"lifespan":{"title":"Number of seconds the output will be stored. Works only with S3 storage.","type":"integer"}},"description":"Output Zip file structure."},"HTTPValidationError":{"title":"HTTPValidationError","type":"object","properties":{"detail":{"title":"Detail","type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ValidationError":{"title":"ValidationError","required":["loc","msg","type"],"type":"object","properties":{"loc":{"title":"Location","type":"array","items":{"type":"string"}},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}}}}}}
```
