POST v1/fields?projectId={projectId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
projectId

integer

Default value is 0

Body Parameters

FieldInModel
NameDescriptionTypeAdditional information
deleteField

boolean

None.

nextToId

integer

None.

id

integer

None.

name

string

None.

colType

enmFieldType

None.

isShowInTable

boolean

None.

isShowInMobileTable

boolean

None.

isSortable

boolean

None.

isMandatory

boolean

None.

isCustom

boolean

None.

listId

integer

None.

itemType

enmItemType

None.

projectIds

Collection of integer

None.

columnTblId

integer

None.

orderRow

integer

None.

unitDirection

string

None.

unitText

string

None.

items

Collection of ItemBaseModel

None.

Request Formats

application/json, text/json, application/vnd.team.do+json

Sample:
{
  "deleteField": true,
  "nextToId": 1,
  "id": 2,
  "name": "sample string 3",
  "colType": 0,
  "isShowInTable": true,
  "isShowInMobileTable": true,
  "isSortable": true,
  "isMandatory": true,
  "isCustom": true,
  "listId": 1,
  "itemType": 0,
  "projectIds": [
    1,
    2
  ],
  "columnTblId": 9,
  "orderRow": 10,
  "unitDirection": "sample string 11",
  "unitText": "sample string 12",
  "items": [
    {
      "id": 1,
      "name": "sample string 2"
    },
    {
      "id": 1,
      "name": "sample string 2"
    }
  ]
}

text/html

Sample:
{"deleteField":true,"nextToId":1,"id":2,"name":"sample string 3","colType":0,"isShowInTable":true,"isShowInMobileTable":true,"isSortable":true,"isMandatory":true,"isCustom":true,"listId":1,"itemType":0,"projectIds":[1,2],"columnTblId":9,"orderRow":10,"unitDirection":"sample string 11","unitText":"sample string 12","items":[{"id":1,"name":"sample string 2"},{"id":1,"name":"sample string 2"}]}

Response Information

Resource Description

FieldOutModel
NameDescriptionTypeAdditional information
id

integer

None.

name

string

None.

colType

enmFieldType

None.

isShowInTable

boolean

None.

isShowInMobileTable

boolean

None.

isSortable

boolean

None.

isMandatory

boolean

None.

isCustom

boolean

None.

listId

integer

None.

itemType

enmItemType

None.

projectIds

Collection of integer

None.

columnTblId

integer

None.

orderRow

integer

None.

unitDirection

string

None.

unitText

string

None.

items

Collection of ItemBaseModel

None.

Response Formats

application/json, text/json, application/vnd.team.do+json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "colType": 0,
  "isShowInTable": true,
  "isShowInMobileTable": true,
  "isSortable": true,
  "isMandatory": true,
  "isCustom": true,
  "listId": 1,
  "itemType": 0,
  "projectIds": [
    1,
    2
  ],
  "columnTblId": 8,
  "orderRow": 9,
  "unitDirection": "sample string 10",
  "unitText": "sample string 11",
  "items": [
    {
      "id": 1,
      "name": "sample string 2"
    },
    {
      "id": 1,
      "name": "sample string 2"
    }
  ]
}

text/html

Sample:
{"id":1,"name":"sample string 2","colType":0,"isShowInTable":true,"isShowInMobileTable":true,"isSortable":true,"isMandatory":true,"isCustom":true,"listId":1,"itemType":0,"projectIds":[1,2],"columnTblId":8,"orderRow":9,"unitDirection":"sample string 10","unitText":"sample string 11","items":[{"id":1,"name":"sample string 2"},{"id":1,"name":"sample string 2"}]}