API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

POST /v1/projects/import-from-order

POST/v1/projects/import-from-order

Materialise a sales-order into a project / tasks / tickets per service position (ADR 0139).

Data model

This operation works on the entity Project (project). All 50 fields — type, validation, required status, relationships — are listed in the schema reference.

Request body

NameTypeDescription
salesOrderIdrequiredstring
targetstring
itemsrequiredarray
projectrequiredobject

Example

curl -X POST https://api.codemeta-os.de/v1/projects/import-from-order \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "salesOrderId": "string",
  "target": "project",
  "items": [],
  "project": null
}'
const result = await cm.projects.post({
  "salesOrderId": "string",
  "target": "project",
  "items": [],
  "project": null
});

Response codes

HTTP Meaning
200 Default Response

Search