Probleme mit Microsoft Graph. Dies schafft neue ExtensionProperties nach this documentationFehler beim Erstellen von ExtensionProperties mit Microsoft Graph
function crear($objeto, $datos){
$graph->setApiVersion("beta");
$r = $graph->createRequest("POST", "/$objeto")
->attachBody($datos)
->execute();
}
crear('applications/'.ID_APP.'/extensionProperties', array(
'extensionProperty'=>array(
"appDisplayName"=>NOMBRE_APP,
"name"=>"cargo",
"dataType"=>"Integer",
"isSyncedFromOnPremises"=>true,
"targetObjects"=>array('Group')
)
));
Fehler:
Type: GuzzleHttp\Exception\ClientException
Message: Client error: `POST
https://graph.microsoft.com/beta/applications/my_id_app/extensionProperties` resulted in a `405 Method Not Allowed`
response: { "error": { "code": "Request_BadRequest", "message": "Specified
HTTP method is not allowed for the request (truncated...)
Filename: /var/www/html/ischooldesarrollo/application/libraries/msgraph-sdk-
php/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
Line Number: 111
Was mache ich falsch?