redguava / cliniko-api

The API for Cliniko
73 stars 39 forks source link

403 Error when posting patient attachments #341

Closed rclarke1 closed 3 years ago

rclarke1 commented 3 years ago

The last 2 days I have started getting 403 errors when putting POST requests to the patient attachments endpoint. Has anything changed in this process? I have been successfully doing this for the last year or so. Thanks Richard

JohnColvin commented 3 years ago

Hi Richard,

We recently deprecated the old way of uploading patient attachments as announced in this post: https://groups.google.com/u/1/a/redguava.com.au/g/cliniko-api/c/SmmLizHXfDQ/m/YnrFiCSaAQAJ

You're probably still using v2 signing and need to update to handle v4 instead.

Best, John

On Fri, Feb 26, 2021 at 4:25 AM rclarke1 notifications@github.com wrote:

The last 2 days I have started getting 403 errors when putting POST requests to the patient attachments endpoint. Has anything changed in this process? I have been successfully doing this for the last year or so. Thanks Richard

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/redguava/cliniko-api/issues/341, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACL3M7BGLLA7MMZSUOIB5DTA5SI7ANCNFSM4YIDC4GQ .

rclarke1 commented 3 years ago

Thanks, Yes updating according to v4 worked. I would have got the initial mailing list announcement but not followed up on it.