I'm trying to integrate my service with WSO2 identity server. I found scim2 API, that aplly creates users by rest requset. The sample request is:
{
"schemas": [],
"name": {
"familyName": "resttest@gmail.com",
"givenName": "RestTest"
},
"userName": "resttest@gmail.com",
"password": "admin",
"emails": [{
"primary": true,
"value": "resttest@gmail.com",
"type": "home"
}
]
}
but I get response:
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"scimType": "invalidSyntax",
"detail": "Request is unparsable, syntactically incorrect, or violates schema.",
"status": "400"
}
What I'm doing wrong? I can't find helpful information in the logs. The only one line from the logs below:
ERROR {org.wso2.charon3.core.encoder.JSONDecoder} - json error in decoding the resource