Microsoft Graph API – Syntax error: character ‘*’ is not valid at position 0

Error:

{
"error": {
  "code": "BadRequest",
  "message": "Syntax error: character '*' is not valid at position 0 in '*'.",
  "innerError": {
    "request-id": "aa4dd443-8100-46d4-8d3d-da83ac969266",
    "date": "2018-10-02T08:41:03"
  }
}

Posible Motivo:

Estamos utilizando una de las variables que aparece en la documentacion, por ejemplo ‘search’ de este modo:

https://graph.microsoft.com/v1.0/sites?$search=*

Solución:

Utilizar la variable directamente mediante su nombre, sin el simbolo ‘$’:

https://graph.microsoft.com/v1.0/sites?search=*

Podéis realizar todos los tests en Graph Explorer: https://developer.microsoft.com/en-us/graph/graph-explorer

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.