POST api/crm/tag/createEdit

Request Information

URI Parameters

None.

Body Parameters

CrmTagCreateEditView
NameDescriptionTypeAdditional information
Id

integer

None.

IsCreate

boolean

None.

Name

string

Required

Colors

Collection of SelectListItem

None.

ColorId

integer

None.

RelatedTypeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "IsCreate": true,
  "Name": "sample string 3",
  "Colors": [
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    },
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    }
  ],
  "ColorId": 1,
  "RelatedTypeId": 1
}

application/xml, text/xml

Sample:
<CrmTagCreateEditView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.CrmTagView">
  <ColorId>1</ColorId>
  <Colors xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
  </Colors>
  <Id>1</Id>
  <IsCreate>true</IsCreate>
  <Name>sample string 3</Name>
  <RelatedTypeId>1</RelatedTypeId>
</CrmTagCreateEditView>

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.