• Sushant Thakur 23
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
When you try to create a user and send
 
    "phoneNumbers":[
        {
            "type": "work",
            "value": "02111234567"
        },
        {
            "type": "mobile",
            "value": "01721234567"
        }
    ]
 
you get an error
 
{
    "schemas": "[\"urn:ietf:params:scim:api:messages:2.0:Error\"]",
    "detail": "INVALID:only_a_single_phone_is_allowed",
    "status": 409
}
 
This happens although you can send either a work number (stored in Phone) or a mobile number (stored in MobilePhone) - and a GET call returns both numbers when the are set.
So the create (POST) or full update (PUT) request should be able to accept two numbers as well.