Skip to main content
POST
/
bom_templates
Add a new bom template
curl --request POST \
  --url https://api.rechain.co/public/v1/bom_templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Template Name",
  "companyId": "123e4567-e89b-12d3-a456-426614174000"
}
'
{
  "name": "Template Name",
  "companyId": "123e4567-e89b-12d3-a456-426614174000",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "bomTemplateComponents": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Create a new bom template

name
string
required
Example:

"Template Name"

companyId
string<uuid>
required
Example:

"123e4567-e89b-12d3-a456-426614174000"

Response

Successful operation

id
string<uuid>
Example:

"123e4567-e89b-12d3-a456-426614174000"

bomTemplateComponents
string[]