Cofactr Platform API
  1. Programs
Cofactr Platform API
  • BOMs
    • Gets Boms that user has read access to
      GET
    • Creates a Bom using Cofactr Data
      POST
    • Creates a Bom using raw bomline data and performs searches to convert into Cofactr Data
      POST
    • Gets a Bom
      GET
    • Upsert BOM Async
      PUT
    • Updates a Bom
      PATCH
    • Deletes a Bom if still unapproved. Archives a bom if approved.
      DELETE
    • Approves an unapproved Bom.
      POST
    • Gets Bom Lines on a Bom.
      GET
    • Creates a new bomline on a Bom using Cofactr data. If a bomline with the provided part exists it will sum the quants instead of duplicating lines.
      POST
    • Gets a BomLine
      GET
    • Updates a BomLine
      PATCH
    • Removes a Bomline from a Bom.
      DELETE
    • Attempts to create a new Bomline using raw data and performs searches to convert into Cofactr Data. If a Bomline with the same part and refdes exists it will sum the quants instead of duplicating lines.
      POST
  • Programs
    • Gets Programs
      GET
    • Creates a Program
      POST
    • Gets a Program
      GET
    • Updates a Program
      PATCH
    • Deletes a Program
      DELETE
    • Gets Program Availabilities
      GET
    • Gets Program Availabilities Async
      GET
    • Gets Program Reference Pricing
      GET
    • Get Programs Lines
      GET
    • Get Programs Line
      GET
    • Update Programs Line
      PATCH
    • Delete Programs Line
      DELETE
    • Create Programs Lines
      POST
    • Get Program Part Overrides
      GET
    • Create Program Part Overrides
      POST
    • Get Program Part Override
      GET
    • Update Program Part Override
      PATCH
    • Delete Program Part Override
      DELETE
  • Account
    • Sub Org
      • List Sub Orgs
      • Get Sub Org
      • Update Sub Org
      • Create Sub Org
    • Get Org
    • Get Users
    • Get User
  • Reporting
    • Customer SQL Query
  • Email
    • Mark Outbound Email as Sent
    • Create Outbound Email
    • Get Outbound Email
  • Auth
    • Update API Key
  • Async Jobs
    • Get Async Job Status
  • Stock Documents
    • List StockDocuments
    • Get StockDocument
    • Download StockDocument
    • Create StockDocument
  • Suppliers
    • Create Supplier
    • Update Supplier
    • Get Supplier
    • Get Suppliers
  • Parts
    • Async Create Parts
    • Async Upsert Parts
    • Get Part
  • Purchases
    • Get Purchase Order
    • Create Purchase Order
    • Update Purchase Order
    • Delete Purchase Order
    • Get Purchase Lines
    • Get Purchase Line
    • Create Purchase Line
    • Update Many Purchase Lines
    • Delete Purchase Line
    • Get NoPart Purchase Lines
    • Create NoPart Purchase Line
    • Update Many NoPart Purchase Lines
    • Delete NoPart Purchase Line
    • Create Purchase Event
    • Update Supplier Bill
    • Update Supplier Bill Line
    • Create Supplier Bill
    • Create Supplier Bill Line
  • Teams
    • Get Teams
    • Create Team
    • Get Team
    • Update Team
    • Delete Team
    • Archive Team
    • Unarchive Team
    • Get Team Types
    • Create Team Type
    • Get Team Type
    • Update Team Type
    • Delete Team Type
  • Custom Properties
    • Get Custom Properties
    • Create Custom Property
    • Update Custom Property
    • Get Custom Property
  • Stock Lots
    • Updates a StockLot
    • Upsert Part Stock
  • Tags
    • Get tags
    • Create tag
    • Get tag
    • Update tag
  • Rfqs
    • Create Rfq
    • Update Rfq
  • RfqLines
    • Create RfqLine
    • Update RfqLine
  • SupplierQuote
    • Create Supplier Quote
    • Update Supplier Quote
  • SupplierQuoteLines
    • Create Supplier Quote Line
    • Update Supplier Quote Line
  1. Programs

Create Programs Lines

POST
/v1/programs/{program_id}/lines/
Production Runs

Request

Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************
Path Params
program_id
string 
required
Query Params
blended
string 
optional
If given, include programs belonging to sub orgs in the lookup
Body Params application/json
bom
string <uuid>
Bom
required
quant
integer 
Quant
required
Example
{
  "bom": "fdfaece0-9460-4202-8f66-9242bf0e4c54",
  "quant": 0
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/programs//lines/?blended=' \
--header 'Content-Type: application/json' \
--header 'Authorization;' \
--data-raw '{
    "bom": "fdfaece0-9460-4202-8f66-9242bf0e4c54",
    "quant": 0
}'

Responses

🟢200Success
application/json
Body
quant
integer 
Quant
required
>= -2147483648<= 2147483647
bom
object (Boms) 
required
id
string <uuid>
Id
read-onlyoptional
name
string  | null 
Name
optional
<= 255 characters
version
string  | null 
Version
optional
<= 255 characters
part_number
string  | null 
Part number
required
>= 1 characters<= 255 characters
approved
string 
Approved
read-onlyoptional
metadata
object  | null 
Metadata
required
org_id
string 
Org id
read-onlyoptional
data_source
string  | null 
Data source
optional
Where this record originated from. Null indicates normal Flagship operation, otherwise refers to input integration source.
<= 255 characters
synced_from_integration
boolean 
optional
Whether this BOM is synced from an external integration source.
Default:
false
synced_from_integration_at
string <date-time> | null 
optional
The datetime that this BOM was last synced at
integration_source_name
string  | null 
optional
Alias of data_source
integration_record_id
string  | null 
optional
The ID of the BOM in an external integration
Example
{
  "quant": -2147483648,
  "bom": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "string",
    "version": "string",
    "part_number": "string",
    "approved": "string",
    "metadata": {},
    "org_id": "string",
    "data_source": "string",
    "synced_from_integration": false,
    "synced_from_integration_at": "2019-08-24T14:15:22Z",
    "integration_source_name": "string",
    "integration_record_id": "string"
  }
}
Modified at 2024-08-23 10:54:43
Previous
Delete Programs Line
Next
Get Program Part Overrides
Built with