API v3 reference: PUT /marketing/contacts not updated after job status endpoint was created
Expected content
Since the import contact status API endpoint exists (marketing/contacts/imports/{id}), and clearly states: "This endpoint can be used to check the status of your contact import job. Use the job_id from the PUT Import Contacts, PUT Add or Update a Contact, or DELETE Contacts as the id in the path parameter."
We would expect the documentation on the PUT /marketing/contacts (add or update a contact) to contain a reference on how to check the status of the job returned.
Actual content
From the PUT /marketing/contacts documentation (add or update a contact):
We do not expect customers to know which contacts were updated and which were added, so we have provided this endpoint for customers to easily update and add contacts (also know as upsert). The creation and update of contacts are an asynchronous process. This means that the response will not contain feedback on the processing of your contacts rather, it will contain a 202 indicating the contacts are queued to be processed or a 4XX error with validation errors. You will need to use the Search endpoint if you would like to validate your contacts have been updated or added.
You will see a job_id in response to your put request, and this job_id will be used in a future endpoint to check the status of your job. Please check back for updates to use the job_id.
Link to page: https://sendgrid.com/docs/API_Reference/api_v3.html
Thank you @brynek for bringing this to our attention. I have added it to our backlog and will address the missing docs as soon as possible.
Hi @brynek
We've updated the docs to mention that
You will see a job_id in the response to your request. This can be used to check the status of your upsert job. To do so, please use the "Import Contacts Status" endpoint.
And that reference to the Import Contacts Status endpoint can be found here.
Cheers!