Create a customfield
POSThttps://api-dev.ianai.co/v2/support/customfield
Create a customfield
Request
Responses
- 200
- 400
- 401
- 403
- 409
- 500
Custom field
Bad request error
Unauthorized error
Token issue like Expired or corrupted
Conflict
Internal Server error
Authorization: http
name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api-dev.ianai.co/v2/support/customfield");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent("{\n \"active\": true,\n \"field_label\": \"label\",\n \"field_type\": \"text | number | money | date | boolean | list | choice | multichoice | calculation\",\n \"default_value\": \"default\",\n \"required\": true,\n \"entities\": [\n \"item\"\n ],\n \"choices\": [\n \"choice1\"\n ],\n \"created_at\": \"2021-01-01T00:00:00Z\",\n \"calculated\": \"string\",\n \"hidden\": true\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear