POST odata/Users

Creates new User.

Request Information

Request body formats

application/json, text/json

Sample:
{
    "SiteName":"SampleSite",
    "FirstName":"John",
    "LastName":"Smith",
    "PictureThumbFilePath":"~/Photos/SampleSite/Profile/Profile_k1m7_resized.jpg",
    "PictureFilePath":"~/Photos/SampleSite/Profile/Profile_k1m7.jpg",
    "City":"New York",
    "Country":"United States",
    "Gender":"M",
    "MaritalStatus":"Single",
    "AboutMe":"Some note about user",
    "IsPrivate":false,
    "NotificationsOptOutByUser":false
}

Response Information

Response body formats

application/json, text/json

Sample:
HTTP/1.1 201 Created
Content-Type: application/json; charset=utf-8
Location: http://sampleserver.com/odata/Users(51fb1ec7-88a0-40b4-b4d0-b6fbe41de946)
{
    "odata.metadata":"http://sampleserver.com/odata/$metadata#User/@Element",
    //Some User data here. Please use Location Header to retrieve new User's data.
}