PUT api/Entity

Update Fields on specified entity

Request Information

URI Parameters

None.

Body Parameters

Altai.Web.Services.Models.Entity
NameDescriptionTypeAdditional information
Id

System.String

None.

UpdateEntityId

System.String

None.

LogicalName

System.String

None.

Attributes

System.Collections.Generic.List`1[Altai.Web.Services.Models.Attribute]

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "UpdateEntityId": "sample string 2",
  "LogicalName": "sample string 3",
  "Attributes": [
    {
      "Label": "sample string 1",
      "AttributeName": "sample string 2",
      "DecimalAttributeValue": 3.0,
      "WholeNumberAttributeValue": 4,
      "AttributeValue": "sample string 5",
      "BooleanAttributeValue": true,
      "MoneyAttributeValue": 7.0,
      "OptionSetAttributeValue": {
        "Id": "sample string 1",
        "Name": "sample string 2"
      },
      "OptionSetValuesAttributeValue": [
        {
          "Id": "sample string 1",
          "Name": "sample string 2"
        },
        {
          "Id": "sample string 1",
          "Name": "sample string 2"
        }
      ],
      "AttributeType": "sample string 8"
    },
    {
      "Label": "sample string 1",
      "AttributeName": "sample string 2",
      "DecimalAttributeValue": 3.0,
      "WholeNumberAttributeValue": 4,
      "AttributeValue": "sample string 5",
      "BooleanAttributeValue": true,
      "MoneyAttributeValue": 7.0,
      "OptionSetAttributeValue": {
        "Id": "sample string 1",
        "Name": "sample string 2"
      },
      "OptionSetValuesAttributeValue": [
        {
          "Id": "sample string 1",
          "Name": "sample string 2"
        },
        {
          "Id": "sample string 1",
          "Name": "sample string 2"
        }
      ],
      "AttributeType": "sample string 8"
    }
  ]
}

application/xml, text/xml

Sample:
<Entity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Altai.Web.Services.Models">
  <Attributes>
    <Attribute>
      <AttributeName>sample string 2</AttributeName>
      <AttributeType>sample string 8</AttributeType>
      <AttributeValue>sample string 5</AttributeValue>
      <BooleanAttributeValue>true</BooleanAttributeValue>
      <DecimalAttributeValue>3</DecimalAttributeValue>
      <Label>sample string 1</Label>
      <MoneyAttributeValue>7</MoneyAttributeValue>
      <OptionSetAttributeValue>
        <Id>sample string 1</Id>
        <Name>sample string 2</Name>
      </OptionSetAttributeValue>
      <OptionSetValuesAttributeValue>
        <OptionSetValue>
          <Id>sample string 1</Id>
          <Name>sample string 2</Name>
        </OptionSetValue>
        <OptionSetValue>
          <Id>sample string 1</Id>
          <Name>sample string 2</Name>
        </OptionSetValue>
      </OptionSetValuesAttributeValue>
      <WholeNumberAttributeValue>4</WholeNumberAttributeValue>
    </Attribute>
    <Attribute>
      <AttributeName>sample string 2</AttributeName>
      <AttributeType>sample string 8</AttributeType>
      <AttributeValue>sample string 5</AttributeValue>
      <BooleanAttributeValue>true</BooleanAttributeValue>
      <DecimalAttributeValue>3</DecimalAttributeValue>
      <Label>sample string 1</Label>
      <MoneyAttributeValue>7</MoneyAttributeValue>
      <OptionSetAttributeValue>
        <Id>sample string 1</Id>
        <Name>sample string 2</Name>
      </OptionSetAttributeValue>
      <OptionSetValuesAttributeValue>
        <OptionSetValue>
          <Id>sample string 1</Id>
          <Name>sample string 2</Name>
        </OptionSetValue>
        <OptionSetValue>
          <Id>sample string 1</Id>
          <Name>sample string 2</Name>
        </OptionSetValue>
      </OptionSetValuesAttributeValue>
      <WholeNumberAttributeValue>4</WholeNumberAttributeValue>
    </Attribute>
  </Attributes>
  <Id>sample string 1</Id>
  <LogicalName>sample string 3</LogicalName>
  <UpdateEntityId>sample string 2</UpdateEntityId>
</Entity>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

System.String

None.

Headers

System.Net.Http.Headers.HttpResponseHeaders

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

System.Boolean

None.