Skip to main content
POST
Create a material sourcing

Authorizations

Authorization
string
header
required

OAuth 2.0 client credentials. Exchange your client_id and client_secret for an access token scoped to the organisation that provides data access.

Headers

Cula-Organisation-Id
string
required

ID of the organisation the request operates on behalf of (e.g. org_...). Must be an organisation the API client has access to.

Example:

"org_01k83mfmhgchya944v86ryvhpq"

Body

application/json
config_id
string
required

The ID of the material sourcing config that defines the sourcing to create.

Example:

"mscc_01kpteg39rde1m80740h6p2wb2"

occurred_at
string<date-time>

When the sourcing took place: an ISO 8601 date-time with an explicit UTC offset (Z or ±hh:mm). Defaults to now if omitted.

Example:

"2026-01-15T08:00:00Z"

external_id
string

An optional custom ID that can be set to an internal ID from your system. This ID must be unique within all objects of the organisation you operate in. You can later use this external ID to reference and query this object. Be aware that you can update this ID later. If you need an immutable ID, use the object ID returned when creating the object.

Required string length: 1 - 100
Pattern: ^[A-Za-z0-9\-_]+$
Example:

"MY-CUSTOM-ID"

output_containers
(New Container · object | Existing Container · object)[]

If the config version's output_configs field contains items, you can pass containers that reference a listed config and should be used as outputs here. Several items may name the same config.

Maximum array length: 100

Describes a new container to create, based on one of the container configs listed by the config of the object you create.

data_points
object[]

Data points to be set on the material sourcing, based on the data_point_configs list of the material sourcing config. Included values might affect output containers.

Maximum array length: 100

Response

Material sourcing created.

id
string
required

The ID of the material sourcing.

Example:

"msc_01k2rkq2yav2zev1b6f2ngzkqv"

config_id
string
required

The ID of the config the sourcing was created from.

Example:

"mscc_01kpteg39rde1m80740h6p2wb2"

config_version_id
string
required

The ID of the exact config version the sourcing was created from.

Example:

"msccv_01kym9dwvb8naj2qn8nv5vh331"

external_id
string | null
required

Optional external ID of the sourcing.

Example:

"MY-CUSTOM-ID"

display_id
string
required

Human-readable identifier.

Example:

"SRC-2026-01-15-1"

site
object
required

The site the sourcing was executed at.

occurred_at
string<date-time>
required

When the sourcing took place.

Example:

"2026-01-15T08:00:00Z"

created_at
string<date-time>
required

When the sourcing was recorded in Cula.

Example:

"2026-01-15T08:00:00Z"

data_points
(short_text · object | long_text · object | multi_text · object | number · object | percentage · object | amount · object | timestamp · object | duration · object | boolean · object | material · object | material_batch · object | container_type · object | material_pool · object)[]
required

Data points set on the sourcing step itself.

Data point holding a single line of text.

output_containers
object[]
required

The material containers the sourcing produced.

files
object[]
required

Files attached to the material sourcing.