Hi,
Actually, I need to get the information of an element in a JSON format, I am trying to use an HTTP call through the SharePoint Rest API but the generated error is: HTTP 403 Forbidden Access Denied.
INPUT:
Method: GET
URI: https://siteUrl/_api/web/lists/getbytitle('Contactenos')/items('27')
Headers:
{
"Accept": "application/json;odata=verbose",
"Content-Type": "application/json;odata=verbose"
}
OUTPUT:
StatusCode: 403
Body:
Manage your flows | Microsoft Flow
{ "error": { "code": "-2147024891, System.UnauthorizedAccessException", "message": { "lang": "es-ES", "value": "Acceso denegado. No tiene el permiso necesario para realizar esta acción o tener acceso a este recurso." } } }
how can I solve that?
Hi LuchitaSP,
How is the Swagger file configured?
Please make sure there is no error code in your Swagger file.
The error message says that you don’t have a permission to access. Could you also check the permission on your side?
Best regards,
Mabel Mao
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional