Skip to main content
POST
/
material-application
/
{id}
/
files
Upload a file to a material application step
curl --request POST \
  --url https://api.cula.tech/tracking/v1/material-application/{id}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --header 'Cula-Org-Id: <cula-org-id>' \
  --form file='@example-file' \
  --form site=ste_01kqzcjrpyf27tge6smsbnhkh5
{
  "id": "fil_01kqzcjrpyf27tgeaqk8twgw91",
  "file_name": "puro_LCA_RCCS_Q4.xlsm",
  "file_size_bytes": 2451230,
  "mime_type": "application/vnd.ms-excel.sheet.macroEnabled.12",
  "site": {
    "id": "<string>",
    "external_id": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cula.tech/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

OAuth2 client credentials flow. Exchange your client_id and client_secret for a short-lived access token, then pass it as a Bearer token in the Authorization header.

Headers

Cula-Org-Id
string
required

Organisation ID that scopes this request. The authenticated consumer must be authorized for this organisation. Omitting this header returns 400; passing an unauthorised org returns 403.

Path Parameters

id
string
required

Cula-assigned resource ID in TypeID format (e.g. stp_01kqzcjrpxf27tge33jwvjhkff). Alternatively, pass your external ID prefixed with ext- (e.g. ext-MY-STEP-001). The ext- prefix is unambiguous because TypeIDs use _ separators and never start with ext-.

Body

multipart/form-data
file
file
required

File to upload. Maximum size is 30 MiB.

site
string
required

ID or ext-{externalId} of the site this file belongs to.

Example:

"ste_01kqzcjrpyf27tge6smsbnhkh5"

Response

File uploaded and linked.

id
string
required
Example:

"fil_01kqzcjrpyf27tgeaqk8twgw91"

file_name
string
required
Example:

"puro_LCA_RCCS_Q4.xlsm"

file_size_bytes
integer
required
Example:

2451230

mime_type
string
required
Example:

"application/vnd.ms-excel.sheet.macroEnabled.12"

site
object
required

The site this file belongs to.

created_at
string<date-time>
required