How to replace csv media file or delete existing media file using kobo v2 API

@uchechinedu01 that’s great! Regarding redeployment, it looks like you’ve left out the active attribute. I’m also not sure why you’re sending the version_id in the files dict — try something like this rather:

deployment_data = {
    'version_id': version_to_deploy,
    'active': True
}
response = requests.patch(asset_url + 'deployment/', headers=headers, data=deployment_data)
1 Like