PUT api/v1/segments/{code}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

string

Required

Body Parameters

StoredSegmentDto
NameDescriptionTypeAdditional information
Code

string

None.

Name

string

None.

Query

string

None.

OrganizationCode

string

None.

StoredSegmentItemDtos

Collection of StoredSegmentItemDto

None.

Request Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "name": "sample string 2",
  "query": "sample string 3",
  "organizationCode": "sample string 4",
  "storedSegmentItemDtos": [
    {
      "id": "fe0e2ece-2054-4d90-b4e6-8056b003d692",
      "storedSegmentCode": "sample string 2",
      "type": 0,
      "isNegated": true,
      "code": "sample string 4",
      "name": "sample string 5",
      "tagGroupCode": "sample string 6",
      "tagGroupName": "sample string 7",
      "tagGroupParentCode": "sample string 8",
      "tagGroupParentName": "sample string 9"
    },
    {
      "id": "fe0e2ece-2054-4d90-b4e6-8056b003d692",
      "storedSegmentCode": "sample string 2",
      "type": 0,
      "isNegated": true,
      "code": "sample string 4",
      "name": "sample string 5",
      "tagGroupCode": "sample string 6",
      "tagGroupName": "sample string 7",
      "tagGroupParentCode": "sample string 8",
      "tagGroupParentName": "sample string 9"
    }
  ]
}

application/xml, text/xml

Sample:
<StoredSegmentDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Domain.Dtos">
  <Code>sample string 1</Code>
  <Name>sample string 2</Name>
  <OrganizationCode>sample string 4</OrganizationCode>
  <Query>sample string 3</Query>
  <StoredSegmentItemDtos>
    <StoredSegmentItemDto>
      <Code>sample string 4</Code>
      <Id>fe0e2ece-2054-4d90-b4e6-8056b003d692</Id>
      <IsNegated>true</IsNegated>
      <Name>sample string 5</Name>
      <StoredSegmentCode>sample string 2</StoredSegmentCode>
      <TagGroupCode>sample string 6</TagGroupCode>
      <TagGroupName>sample string 7</TagGroupName>
      <TagGroupParentCode>sample string 8</TagGroupParentCode>
      <TagGroupParentName>sample string 9</TagGroupParentName>
      <Type>MkAction</Type>
    </StoredSegmentItemDto>
    <StoredSegmentItemDto>
      <Code>sample string 4</Code>
      <Id>fe0e2ece-2054-4d90-b4e6-8056b003d692</Id>
      <IsNegated>true</IsNegated>
      <Name>sample string 5</Name>
      <StoredSegmentCode>sample string 2</StoredSegmentCode>
      <TagGroupCode>sample string 6</TagGroupCode>
      <TagGroupName>sample string 7</TagGroupName>
      <TagGroupParentCode>sample string 8</TagGroupParentCode>
      <TagGroupParentName>sample string 9</TagGroupParentName>
      <Type>MkAction</Type>
    </StoredSegmentItemDto>
  </StoredSegmentItemDtos>
</StoredSegmentDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.