| Name | Value |
|---|---|
| Content-Type | application/json |
| Name | Type | Constraints | Description |
|---|---|---|---|
name | string | minLength: 1 maxLength: 128 | Custom property name |
show_on_facade | boolean default:false | Should show property on card's facade | |
multiline | boolean default:false | Should render multiline text field | |
| vote_variant | null | Empty vote variant - for custom properties not of type vote and collective vote | |
enum | [rating,scale,emoji_set] | Type of vote or collective vote custom properties | |
type | enum default:string | [ string, number, date, email, phone, checkbox, select, formula, url, collective_score, vote, collective_vote, catalog, user, attachment ] | Validation for value by provided type |
| values_type | null | Empty for any type except collective value | |
enum | [number,text] | Type of values | |
| colorful | boolean | Used for select properties. Determines should select color when creating new select value. | |
null | Empty colorful value | ||
| multi_select | boolean | Used for select properties. Determines is select property used as multi select | |
null | Empty multi select value | ||
| values_creatable_by_users | boolean | Used for select properties. Determines if users with writer role are able to create new select property values. | |
null | Empty values_creatable_by_users value | ||
data | object | ||
formula | string | Formula for calculation | |
formula_source_card | object | Card data from which are used to calculate the formula | |
| color | integer | Color of catalog custom property | |
null | Catalog custom property without color | ||
fields_settings | object |
| Description | Response type | Example |
|---|---|---|
| Success | Object |
| Name | Type | Description |
|---|---|---|
| name | string | Custom property name |
| type | string | Custom property type |
| show_on_facade | string | Should show property on card's facade |
| multiline | string | Should render multiline text field |
| fields_settings | null | object | Field settings for catalog type |
| author_id | integer | Author_id |
| company_id | integer | Company_id |
| updated | string | Last update timestamp |
| created | string | Create date |
| id | integer | Custom property id |
| condition | string | Custom property condition |
| colorful | boolean | Used for select properties. Determines should select color when creating new select value. |
| multi_select | boolean | Used for select properties. Determines is select property used as multi select |
| values_creatable_by_users | boolean | Used for select properties. Determines if users with writer role are able to create new select property values. |
| data | null | object | Additional custom property data |
| values_type | null | string | Type of values |
| vote_variant | null | string | Type of vote or collective vote custom properties |
| protected | boolean | Protected flag |
| color | null | integer | Color of catalog custom property |
| external_id | null | string | External id |
| Description | Response type | Example |
|---|---|---|
| Validation error | Object |
| Name | Type | Description |
|---|---|---|
| message | string | Error message |
| Description | Response type | Example |
|---|---|---|
| Invalid token | String |
A schema has not been defined for this response code.
| Description | Response type | Example |
|---|---|---|
| Feature is not supported by tariff | Object |
| Name | Type | Description |
|---|---|---|
| message | string | Error message |
| Description | Response type | Example |
|---|---|---|
| Forbidden | Response body does not exist |
A schema has not been defined for this response code.
How to create type
{
"name": "string prop",
"type": "string",
"show_on_facade": false,
"multiline": true
}{
"name": "linkprop",
"type": "url",
"show_on_facade": true
}{
"name": "email prop",
"type": "email",
"show_on_facade": true
}{
"name": "phone prop",
"type": "phone",
"show_on_facade": true
}{
"name": "select prop",
"type": "select",
"show_on_facade": true,
"multi_select": false,
"colorful": true,
"values_creatable_by_users": true
}{
"name": "multi select prop",
"type": "select",
"show_on_facade": true,
"multi_select": true,
"colorful": true,
"values_creatable_by_users": true
}{
"name": "number prop",
"type": "number",
"show_on_facade": true
}{
"name": "formula prop",
"type": "formula",
"show_on_facade": false,
"data": {
"formula": "prop(\"Prop name\") * prop(\"goals_done\") - 1/2"
}
}{
"name": "collective value prop",
"type": "collective_score",
"show_on_facade": false,
"values_type": "text"
}{
"name": "date prop",
"type": "date",
"show_on_facade": true
}{
"name": "catalog prop",
"type": "catalog",
"show_on_facade": true,
"fields_settings": {
"3889a0a5-66de-4df3-9bd6-405e02eecfca": {
"name": "test",
"required": true,
"deleted": false,
"sortOrder": 1
}
},
"multiline": false,
"color": 3
}{
"name": "collective rating",
"type": "collective_vote",
"show_on_facade": true,
"data": {
"emoji": "⭐️",
"count": 5
},
"vote_variant": "rating"
}{
"name": "collective emoji set",
"type": "collective_vote",
"show_on_facade": true,
"multiline": false,
"data": {
"emojis": [
"😄",
"🤪"
]
},
"vote_variant": "emoji_set"
} 1 curl --request POST \
2 --url 'https://example.kaiten.ru/api/latest/company/custom-properties' \
3 --header 'Accept: application/json' \
4 --header 'Content-Type: application/json'
5 Response
ClickTry It!to start a request and see the response here!