Skip to main content

Create a customfield

POST 

https://api-dev.ianai.co/v2/support/customfield

Create a customfield

Request

Responses

Custom field

Authorization: http

name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
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());
Request Collapse all
Base URL
https://api-dev.ianai.co/v2
Auth
Parameters
— header
Body required
{
  "active": true,
  "field_label": "label",
  "field_type": "text | number | money | date | boolean | list | choice | multichoice | calculation",
  "default_value": "default",
  "required": true,
  "entities": [
    "item"
  ],
  "choices": [
    "choice1"
  ],
  "created_at": "2021-01-01T00:00:00Z",
  "calculated": "string",
  "hidden": true
}
ResponseClear

Click the Send API Request button above and see the response here!