본문으로 건너뛰기

Update a Build

PUT 

https://api-dev.ianai.co/v2/build/:id

Update a Build

Request

Responses

Build information

Authorization: http

name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://api-dev.ianai.co/v2/build/:id");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent("{\n \"active\": true,\n \"txn_datetime\": \"2020-01-01T00:00:00Z\",\n \"doc_number\": \"BUILD_123456\",\n \"internal_notes\": \"Build order for item 123456\",\n \"status\": \"PENDING\",\n \"location\": {\n \"id\": \"uuid\",\n \"name\": \"Location 1\"\n },\n \"project_code\": {\n \"id\": \"uuid\",\n \"name\": \"Project 1\"\n },\n \"department\": {\n \"id\": \"uuid\",\n \"name\": \"Department 1\"\n },\n \"custom_fields\": {},\n \"linked_transaction\": [\n {\n \"entity_name\": \"PurchaseOrderLineItem\",\n \"entity_key\": \"uuid\"\n }\n ],\n \"built_items\": [\n {\n \"line_number\": 1,\n \"item\": {\n \"id\": \"uuid\",\n \"name\": \"Built Item 1\"\n },\n \"description\": \"Built Item 1 description\",\n \"quantity\": 10,\n \"qty_on_hand\": 50,\n \"measurements\": {\n \"id\": \"uuid\",\n \"weight\": 1,\n \"weight_unit\": \"lbs\",\n \"length\": 1,\n \"height\": 1,\n \"width\": 1,\n \"dimension_unit\": \"in\"\n },\n \"linked_transaction\": {\n \"entity_name\": \"PurchaseOrderLineItem\",\n \"entity_key\": \"uuid\"\n },\n \"uom\": {\n \"id\": \"uuid\",\n \"name\": \"Unit\"\n },\n \"binlocation\": {\n \"id\": \"uuid\",\n \"name\": \"Bin 2\"\n },\n \"lot\": {\n \"id\": \"uuid\",\n \"name\": \"LOT123456\"\n },\n \"serials\": \"SERIAL100\",\n \"class_ref\": {\n \"id\": \"uuid\",\n \"name\": \"Class 1\"\n },\n \"expiry_date\": \"2024-07-29\",\n \"item_options\": {},\n \"option_template\": {\n \"id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"name\": \"Option template name\"\n }\n }\n ],\n \"line_items\": [\n {\n \"line_number\": 1,\n \"item\": {\n \"id\": \"uuid\",\n \"name\": \"Component Item 1\"\n },\n \"description\": \"Component Item 1 description\",\n \"quantity\": 10,\n \"qty_on_hand\": 50,\n \"used_per_unit\": 3,\n \"uom_conversion\": 1,\n \"measurements\": {\n \"id\": \"uuid\",\n \"weight\": 1,\n \"weight_unit\": \"lbs\",\n \"length\": 1,\n \"height\": 1,\n \"width\": 1,\n \"dimension_unit\": \"in\"\n },\n \"linked_transaction\": {\n \"entity_name\": \"PurchaseOrderLineItem\",\n \"entity_key\": \"uuid\"\n },\n \"uom\": {\n \"id\": \"uuid\",\n \"name\": \"Unit\"\n },\n \"binlocation\": {\n \"id\": \"uuid\",\n \"name\": \"Bin 2\"\n },\n \"lot\": {\n \"id\": \"uuid\",\n \"name\": \"LOT123456\"\n },\n \"serials\": \"SERIAL100\",\n \"class_ref\": {\n \"id\": \"uuid\",\n \"name\": \"Class 1\"\n },\n \"expiry_date\": \"2024-07-29\",\n \"item_options\": {},\n \"option_template\": {\n \"id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"name\": \"Option template name\"\n }\n }\n ],\n \"overhead_items\": [\n {\n \"line_number\": 1,\n \"item\": {\n \"id\": \"uuid\",\n \"name\": \"Component Item 1\"\n },\n \"account\": {\n \"id\": \"uuid\",\n \"name\": \"Overhead Account 1\"\n },\n \"description\": \"Component Item 1 description\",\n \"quantity\": 10,\n \"unit_cost\": 10,\n \"amount\": 100,\n \"linked_transaction\": [\n {\n \"entity_name\": \"PurchaseOrderLineItem\",\n \"entity_key\": \"uuid\"\n }\n ]\n }\n ],\n \"attachment\": [\n \"attachment uuid\"\n ],\n \"bom\": {\n \"id\": \"uuid\",\n \"name\": \"string\"\n }\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
— pathrequired
— header
Body required
{
  "active": true,
  "txn_datetime": "2020-01-01T00:00:00Z",
  "doc_number": "BUILD_123456",
  "internal_notes": "Build order for item 123456",
  "status": "PENDING",
  "location": {
    "id": "uuid",
    "name": "Location 1"
  },
  "project_code": {
    "id": "uuid",
    "name": "Project 1"
  },
  "department": {
    "id": "uuid",
    "name": "Department 1"
  },
  "custom_fields": {},
  "linked_transaction": [
    {
      "entity_name": "PurchaseOrderLineItem",
      "entity_key": "uuid"
    }
  ],
  "built_items": [
    {
      "line_number": 1,
      "item": {
        "id": "uuid",
        "name": "Built Item 1"
      },
      "description": "Built Item 1 description",
      "quantity": 10,
      "qty_on_hand": 50,
      "measurements": {
        "id": "uuid",
        "weight": 1,
        "weight_unit": "lbs",
        "length": 1,
        "height": 1,
        "width": 1,
        "dimension_unit": "in"
      },
      "linked_transaction": {
        "entity_name": "PurchaseOrderLineItem",
        "entity_key": "uuid"
      },
      "uom": {
        "id": "uuid",
        "name": "Unit"
      },
      "binlocation": {
        "id": "uuid",
        "name": "Bin 2"
      },
      "lot": {
        "id": "uuid",
        "name": "LOT123456"
      },
      "serials": "SERIAL100",
      "class_ref": {
        "id": "uuid",
        "name": "Class 1"
      },
      "expiry_date": "2024-07-29",
      "item_options": {},
      "option_template": {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "Option template name"
      }
    }
  ],
  "line_items": [
    {
      "line_number": 1,
      "item": {
        "id": "uuid",
        "name": "Component Item 1"
      },
      "description": "Component Item 1 description",
      "quantity": 10,
      "qty_on_hand": 50,
      "used_per_unit": 3,
      "uom_conversion": 1,
      "measurements": {
        "id": "uuid",
        "weight": 1,
        "weight_unit": "lbs",
        "length": 1,
        "height": 1,
        "width": 1,
        "dimension_unit": "in"
      },
      "linked_transaction": {
        "entity_name": "PurchaseOrderLineItem",
        "entity_key": "uuid"
      },
      "uom": {
        "id": "uuid",
        "name": "Unit"
      },
      "binlocation": {
        "id": "uuid",
        "name": "Bin 2"
      },
      "lot": {
        "id": "uuid",
        "name": "LOT123456"
      },
      "serials": "SERIAL100",
      "class_ref": {
        "id": "uuid",
        "name": "Class 1"
      },
      "expiry_date": "2024-07-29",
      "item_options": {},
      "option_template": {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "Option template name"
      }
    }
  ],
  "overhead_items": [
    {
      "line_number": 1,
      "item": {
        "id": "uuid",
        "name": "Component Item 1"
      },
      "account": {
        "id": "uuid",
        "name": "Overhead Account 1"
      },
      "description": "Component Item 1 description",
      "quantity": 10,
      "unit_cost": 10,
      "amount": 100,
      "linked_transaction": [
        {
          "entity_name": "PurchaseOrderLineItem",
          "entity_key": "uuid"
        }
      ]
    }
  ],
  "attachment": [
    "attachment uuid"
  ],
  "bom": {
    "id": "uuid",
    "name": "string"
  }
}
ResponseClear

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