Stiamo utilizzando le seguenti API per aggiornare e sospendere gli utenti, ma stiamo ricevendo errori 403. Potete informarci qual è la causa di questo errore? Per vostra informazione, stiamo utilizzando la chiave API di un utente amministratore.
The API credentials need to be in the request header. You also need to use a dash instead of an underscore for the header field names:
api_key needs to be changed to api-key (or Api-Key)
api_username needs to be changed to api-username (or Api-Username)
The rule is that the header field names are not case sensitive, but you need to use dashes, not underscores. (I learned this the hard way.) Have a look at the example at the top of Discourse API Documentation to see a properly formatted API request.