POST
/
supply-chains
/
company-products
curl --request POST \
  --url http://localhost:3000/connect/v1/supply-chains/company-products/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "product": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "creator": "<string>",
    "updater": "<string>"
  },
  "product_id": "<string>",
  "is_active": true,
  "creator": "<string>",
  "updater": "<string>",
  "company": "<string>",
  "forms": [
    "<string>"
  ],
  "premiums": [
    "<string>"
  ]
}'
{
  "id": "<string>",
  "product": {
    "id": "<string>",
    "premiums": "<string>",
    "is_active": "<string>",
    "updated_on": "2023-11-07T05:31:56Z",
    "created_on": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "description": "<string>",
    "image": "<string>",
    "creator": "<string>",
    "updater": "<string>"
  },
  "product_id": "<string>",
  "updated_on": "2023-11-07T05:31:56Z",
  "created_on": "2023-11-07T05:31:56Z",
  "is_active": true,
  "creator": "<string>",
  "updater": "<string>",
  "company": "<string>",
  "forms": [
    "<string>"
  ],
  "premiums": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Body

application/json
company
string
required
id
string
product
object
product_id
string
Minimum length: 1
is_active
boolean
creator
string
updater
string
forms
string[]
premiums
string[]

Response

201 - application/json
company
string
required
id
string
product
object
product_id
string
Minimum length: 1
updated_on
string
created_on
string
is_active
boolean
creator
string
updater
string
forms
string[]
premiums
string[]