Confluence rest api attachment post

i could make the curl example work , but i can’t find any c# example anywhere , has anyone managed to post an attachment using any c# clients ?

I have the same question but using jQuery. Any examples out there? I could only get the curl example to work.

This has been answered in the community.