POST _vti_bin/DelveApi.ashx/{version}/people/me/properties

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

integer

Required

Body Parameters

Collection of ProfileProperty
NameDescriptionTypeAdditional information
Name

string

None.

Privacy

string

None.

Values

Collection of ProfilePropertyValue

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Name": "sample string 1",
    "Privacy": "sample string 2",
    "Values": [
      {
        "Value": {},
        "TermId": "sample string 2"
      },
      {
        "Value": {},
        "TermId": "sample string 2"
      }
    ]
  },
  {
    "Name": "sample string 1",
    "Privacy": "sample string 2",
    "Values": [
      {
        "Value": {},
        "TermId": "sample string 2"
      },
      {
        "Value": {},
        "TermId": "sample string 2"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfProfileProperty xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Search.DelveApi.DataModel">
  <ProfileProperty>
    <Name>sample string 1</Name>
    <Privacy>sample string 2</Privacy>
    <Values>
      <ProfilePropertyValue>
        <TermId>sample string 2</TermId>
        <Value />
      </ProfilePropertyValue>
      <ProfilePropertyValue>
        <TermId>sample string 2</TermId>
        <Value />
      </ProfilePropertyValue>
    </Values>
  </ProfileProperty>
  <ProfileProperty>
    <Name>sample string 1</Name>
    <Privacy>sample string 2</Privacy>
    <Values>
      <ProfilePropertyValue>
        <TermId>sample string 2</TermId>
        <Value />
      </ProfilePropertyValue>
      <ProfilePropertyValue>
        <TermId>sample string 2</TermId>
        <Value />
      </ProfilePropertyValue>
    </Values>
  </ProfileProperty>
</ArrayOfProfileProperty>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ProfileProperty[]'.

Response Information

Resource Description

Collection of ProfileProperty
NameDescriptionTypeAdditional information
Name

string

None.

Privacy

string

None.

Values

Collection of ProfilePropertyValue

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Name": "sample string 1",
    "Privacy": "sample string 2",
    "Values": [
      {
        "Value": {},
        "TermId": "sample string 2"
      },
      {
        "Value": {},
        "TermId": "sample string 2"
      }
    ]
  },
  {
    "Name": "sample string 1",
    "Privacy": "sample string 2",
    "Values": [
      {
        "Value": {},
        "TermId": "sample string 2"
      },
      {
        "Value": {},
        "TermId": "sample string 2"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfProfileProperty xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Search.DelveApi.DataModel">
  <ProfileProperty>
    <Name>sample string 1</Name>
    <Privacy>sample string 2</Privacy>
    <Values>
      <ProfilePropertyValue>
        <TermId>sample string 2</TermId>
        <Value />
      </ProfilePropertyValue>
      <ProfilePropertyValue>
        <TermId>sample string 2</TermId>
        <Value />
      </ProfilePropertyValue>
    </Values>
  </ProfileProperty>
  <ProfileProperty>
    <Name>sample string 1</Name>
    <Privacy>sample string 2</Privacy>
    <Values>
      <ProfilePropertyValue>
        <TermId>sample string 2</TermId>
        <Value />
      </ProfilePropertyValue>
      <ProfilePropertyValue>
        <TermId>sample string 2</TermId>
        <Value />
      </ProfilePropertyValue>
    </Values>
  </ProfileProperty>
</ArrayOfProfileProperty>