How do I submit a sitemap to Google Search console as a request? I think I'm missing the part where I include my credentials, but it's not clear how to include this in the URL.
Everything is set up in search console and I can submit my sitemap manually.
Following the documentation (https://developers.google.com/webmaster-tools/search-console-api-original/v3/sitemaps/submit) I write this in a browser:
https://www.googleapis.com/webmasters/v3/sites/<mysiteurl>/sitemaps/<mysitemapurl>
It says "Not Found". < mysitemapurl > by itself does get the sitemap.
If I use the try-it option in the documentation then it says "User does not have sufficient permission for site".
I went through the credentials wizard and was told that I have sufficient credentials. I have a @developer.gserviceaccount.com email address and two Key IDs. But where do I include them in the URL?