Production tech map
Technological maps — the step graph that turns route sheets into a finished product
INFO
Every response arrives in the shared envelope — code, message, messages, status_code, time — with the payload in data. The tables below describe what is inside data.
POST /production-tech-map/create
Create a technological map — the step graph that turns route sheets into a finished product. Each item pairs a production step with the route sheet that produces it and names the steps that follow.
Required permission: production · how permissions work
Example request
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/create' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"items": [
{
"step_id": "string",
"route_sheet_id": "string",
"next_step_ids": []
}
]
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/create', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"name": "string",
"items": [
{
"step_id": "string",
"route_sheet_id": "string",
"next_step_ids": []
}
]
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/create",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"name": "string",
"items": [
{
"step_id": "string",
"route_sheet_id": "string",
"next_step_ids": [],
},
],
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"name": "string",
"items": [
{
"step_id": "string",
"route_sheet_id": "string",
"next_step_ids": []
}
]
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/create');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name of the technological map |
group_id | string | No | Production-group ObjectId (a group of type tech_map) this map belongs to |
code | string | No | Optional short code for the map |
note | string | No | Optional free-text note |
items | object[] | Yes | Ordered steps of the map, at least one. Each entry pairs a step with the route sheet that produces it and names the steps that come next. |
items[].step_id | string | Yes | Production-step ObjectId this node of the map executes |
items[].route_sheet_id | string | Yes | Production route-sheet ObjectId holding the recipe for this step |
items[].next_step_ids | string[] | No | Production-step ObjectIds that follow this one. Empty for a terminal step; more than one fans the route out in parallel. This is what turns the flat items[] array into a graph. |
attachments | object[] | No | Files attached to the map (drawings, specifications) |
attachments[].name | string | No | Original file name |
attachments[].path | string | Yes | |
attachments[].size | number | No | |
attachments[].note | string | No |
{
"name": "string",
"group_id": "string",
"code": "string",
"note": "string",
"items": [
{
"step_id": "string",
"route_sheet_id": "string",
"next_step_ids": []
}
],
"attachments": [
{
"name": "string",
"path": "string",
"size": 0,
"note": "string"
}
]
}Response
| Field | Type | Description |
|---|---|---|
name | string | Display name of the technological map |
group_id | string | Production-group ObjectId (a group of type tech_map) this map belongs to |
code | string | Optional short code for the map |
note | string | Optional free-text note |
items | object[] | Hydrated step graph — each item carries its step and route sheet inline alongside the ids sent on create |
items[].step_id | string | Production-step ObjectId this node of the map executes |
items[].route_sheet_id | string | Production route-sheet ObjectId holding the recipe for this step |
items[].next_step_ids | string[] | Production-step ObjectIds that follow this one. Empty for a terminal step; more than one fans the route out in parallel. This is what turns the flat items[] array into a graph. |
items[]._id | string | Tech-map item ObjectId |
items[].tech_map_id | string | Owning technological map ObjectId |
items[].step | object | Hydrated production step |
items[].step._id | string | |
items[].step.name | string | |
items[].route_sheet | object | Hydrated route sheet |
items[].route_sheet._id | string | |
items[].route_sheet.name | string | |
items[].route_sheet.number | string | |
attachments | object[] | Files attached to the map (drawings, specifications) |
attachments[].file_id | string | Uploaded file ObjectId |
attachments[].name | string | Original file name |
_id | string | Technological map ObjectId |
number | string | Auto-generated sequential map number |
group | object | Hydrated production group this map belongs to |
group._id | string | |
group.name | string | |
route_sheet_ids | string[] | Every route-sheet ObjectId referenced by the map's items |
last_route_sheet_id | string | Route sheet of the terminal step — the one that yields the finished product |
is_deleted | boolean | Soft-delete flag |
created_at | string (date-time) | Creation timestamp (ISO 8601) |
updated_at | string (date-time) | Last update timestamp (ISO 8601) |
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"name": "string",
"group_id": "string",
"code": "string",
"note": "string",
"items": [
{
"step_id": "string",
"route_sheet_id": "string",
"next_step_ids": [],
"_id": "string",
"tech_map_id": "string",
"step": {
"_id": null,
"name": null
},
"route_sheet": {
"_id": null,
"name": null,
"number": null
}
}
],
"attachments": [
{
"file_id": "string",
"name": "string"
}
],
"_id": "string",
"number": "string",
"group": {
"_id": "string",
"name": "string"
},
"route_sheet_ids": [
"string"
],
"last_route_sheet_id": "string",
"is_deleted": false,
"created_at": "2025-05-01T12:00:00Z",
"updated_at": "2025-05-01T12:00:00Z"
},
"time": "2025-05-01T12:00:00Z"
}GET /production-tech-map/get-by-id/{id}
Fetch a single technological map by ObjectId, hydrated with its step graph, steps and route sheets.
Required permission: production · how permissions work
Example request
curl -X GET 'https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/get-by-id/6712f0a9c4d1e87b3a0f9911' \
-H "api-key: $BITO_API_KEY"const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/get-by-id/6712f0a9c4d1e87b3a0f9911', {
method: 'GET',
headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"GET",
"https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/get-by-id/6712f0a9c4d1e87b3a0f9911",
headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/get-by-id/6712f0a9c4d1e87b3a0f9911');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY')],
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Technological-map ObjectId |
Request body
No request body.
Response
Same response shape as POST /production-tech-map/create.
POST /production-tech-map/get-paging
Paginated list of technological maps, filterable by production group and free-text search over name, number and code.
Required permission: production · how permissions work
Example request
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/get-paging' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"page": 1,
"limit": 20
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/get-paging', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"page": 1,
"limit": 20
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/get-paging",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"page": 1,
"limit": 20,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"page": 1,
"limit": 20
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/get-paging');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Request body
| Field | Type | Required | Description |
|---|---|---|---|
page | number | Yes | Default: 1 |
limit | number | Yes | Default: 20 |
search | string | No | Filter by name, number or code |
group_id | string | No | Filter by production-group ObjectId |
updated_at | string (date-time) | No | Only records updated at or after this time. |
organization_id | string | No | Organization ObjectId. |
sort_by | string | No | Field name to sort by. |
asc | integer | No | Sort direction: 1 ascending, -1 descending.. One of: -1, 1 |
{
"page": 1,
"limit": 20,
"search": "string",
"group_id": "string",
"updated_at": "2025-05-01T12:00:00Z",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort_by": "string",
"asc": -1
}Response
| Field | Type | Description |
|---|---|---|
total | number | |
list | object[] | |
list[].name | string | Display name of the technological map |
list[].group_id | string | Production-group ObjectId (a group of type tech_map) this map belongs to |
list[].code | string | Optional short code for the map |
list[].note | string | Optional free-text note |
list[].items | object[] | Hydrated step graph — each item carries its step and route sheet inline alongside the ids sent on create |
list[].items[].step_id | string | Production-step ObjectId this node of the map executes |
list[].items[].route_sheet_id | string | Production route-sheet ObjectId holding the recipe for this step |
list[].items[].next_step_ids | string[] | Production-step ObjectIds that follow this one. Empty for a terminal step; more than one fans the route out in parallel. This is what turns the flat items[] array into a graph. |
list[].items[]._id | string | Tech-map item ObjectId |
list[].items[].tech_map_id | string | Owning technological map ObjectId |
list[].items[].step | object | Hydrated production step |
list[].items[].route_sheet | object | Hydrated route sheet |
list[].attachments | object[] | Files attached to the map (drawings, specifications) |
list[].attachments[].file_id | string | Uploaded file ObjectId |
list[].attachments[].name | string | Original file name |
list[]._id | string | Technological map ObjectId |
list[].number | string | Auto-generated sequential map number |
list[].group | object | Hydrated production group this map belongs to |
list[].group._id | string | |
list[].group.name | string | |
list[].route_sheet_ids | string[] | Every route-sheet ObjectId referenced by the map's items |
list[].last_route_sheet_id | string | Route sheet of the terminal step — the one that yields the finished product |
list[].is_deleted | boolean | Soft-delete flag |
list[].created_at | string (date-time) | Creation timestamp (ISO 8601) |
list[].updated_at | string (date-time) | Last update timestamp (ISO 8601) |
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"total": 0,
"list": [
{
"name": "string",
"group_id": "string",
"code": "string",
"note": "string",
"items": [],
"attachments": [],
"_id": "string",
"number": "string",
"group": {
"_id": null,
"name": null
},
"route_sheet_ids": [],
"last_route_sheet_id": "string",
"is_deleted": false,
"created_at": "2025-05-01T12:00:00Z",
"updated_at": "2025-05-01T12:00:00Z"
}
]
},
"time": "2025-05-01T12:00:00Z"
}PUT /production-tech-map/update/{id}
Update an existing technological map. The item graph is rewritten from the items[] array, so send every step — not just the changed ones.
Required permission: production · how permissions work
Example request
curl -X PUT 'https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/update/6712f0a9c4d1e87b3a0f9911' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"items": [
{
"step_id": "string",
"route_sheet_id": "string",
"next_step_ids": []
}
]
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/update/6712f0a9c4d1e87b3a0f9911', {
method: 'PUT',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"name": "string",
"items": [
{
"step_id": "string",
"route_sheet_id": "string",
"next_step_ids": []
}
]
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"PUT",
"https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/update/6712f0a9c4d1e87b3a0f9911",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"name": "string",
"items": [
{
"step_id": "string",
"route_sheet_id": "string",
"next_step_ids": [],
},
],
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"name": "string",
"items": [
{
"step_id": "string",
"route_sheet_id": "string",
"next_step_ids": []
}
]
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/update/6712f0a9c4d1e87b3a0f9911');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Technological-map ObjectId |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name of the technological map |
group_id | string | No | Production-group ObjectId (a group of type tech_map) this map belongs to |
code | string | No | Optional short code for the map |
note | string | No | Optional free-text note |
items | object[] | Yes | Full replacement set of steps. The item graph is rewritten from this array, so send every step, not just the changed ones. |
items[].step_id | string | Yes | Production-step ObjectId this node of the map executes |
items[].route_sheet_id | string | Yes | Production route-sheet ObjectId holding the recipe for this step |
items[].next_step_ids | string[] | No | Production-step ObjectIds that follow this one. Empty for a terminal step; more than one fans the route out in parallel. This is what turns the flat items[] array into a graph. |
attachments | object[] | No | Files attached to the map (drawings, specifications) |
attachments[].name | string | No | Original file name |
attachments[].path | string | Yes | |
attachments[].size | number | No | |
attachments[].note | string | No |
{
"name": "string",
"group_id": "string",
"code": "string",
"note": "string",
"items": [
{
"step_id": "string",
"route_sheet_id": "string",
"next_step_ids": []
}
],
"attachments": [
{
"name": "string",
"path": "string",
"size": 0,
"note": "string"
}
]
}Response
Same response shape as POST /production-tech-map/create.
DELETE /production-tech-map/delete/{id}
Soft-delete a technological map by ObjectId.
Required permission: production · how permissions work
Example request
curl -X DELETE 'https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/delete/6712f0a9c4d1e87b3a0f9911' \
-H "api-key: $BITO_API_KEY"const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/delete/6712f0a9c4d1e87b3a0f9911', {
method: 'DELETE',
headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"DELETE",
"https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/delete/6712f0a9c4d1e87b3a0f9911",
headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/production-tech-map/delete/6712f0a9c4d1e87b3a0f9911');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY')],
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Technological-map ObjectId |
Request body
No request body.
Response
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": "ok",
"time": "2025-05-01T12:00:00Z"
}This page is generated from the OpenAPI spec.