Upload a thumbnail using the Rest API - signature error

Hello friends, please, has anyone managed to upload a thumbnail using the Rest API? We tried here and got only the first step to get the upload url, but when executing it always returns the message that the signature is wrong, we tried to use the value that returns in the X-Amz-Signature field and we haven’t had success yet, thanks for help !