Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,981 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
com.microsoft.graph.http.GraphServiceException: Error code: RequestParameterInvalid
Error message: schema : Requested value 'flowWhenChanged' was not found.
PUT https://graph.microsoft.com/beta/servicePrincipals/ee5ad669-abf6-4414-8484-450243ac066e/synchronization/jobs/scim.9ce1c5e38c7c4c859473bfc28e98a106.39551a98-20a4-4751-a9ec-bf3956a52bc5/schema
406 Not Acceptable This service doesn’t support the format requested in the Accept header.
The code looks like thisL
SynchronizationSchema updatedSchema = graphClient
.servicePrincipals("ee5ad669-abf6-4414-8484-450243ac066e")
.synchronization()
.jobs("scim.9ce1c5e38c7c4c859473bfc28e98a106.39551a98-20a4-4751-a9ec-bf3956a52bc5")
.schema()
.buildRequest()
.put(schema);
The second error seems to be clear - have you checked what Accept header your code is sending? If possible, leave the accept header blank to troubleshoot. If you try the same HTTP request via Postman or similar in assuming it works?