After I have created an user import job I poll the jobs endpoint to get the status of the job. I was wondering what the possible statuses are for an import job and if percentage_done field is available. This isn’t clear from the documentation. The percentage_done field is not marked as required, so I would like to know how to get that field.
Hi @Montijn,
Welcome back to the Auth0 Community!
The statuses provided by the ‘GET /v2/jobs/{id}’ endpoint does not contain a direct percentage_done field, but instead it retrieves a status field that will provide information the currently imported job and it includes the following responses:
- “status”: “pending”
- “status”: “completed”
- “status”: “failed”
You can check out the Bulk User Imports - Check job status documentation which includes more details on the matter.
The recommended approach would be monitoring the summary object once the status transitions to completed and if there were errors in the user import job, you can get the error details by making a GET request to the Get Job Error Details endpoint.
Thank you and if you have further questions please let me know!
Best regards,
Remus