StackMoreLayersДокументация
APIReference

Привязать версию датасета

POST
/competitions/{competition_id}/dataset-bindings/
АвторизацияBearer <token>

StackMoreLayers API token. Send as Authorization: Bearer sml_pat_live_<prefix>.<secret>.

In: header

Параметры пути

competition_id*integer

Numeric competition identifier.

Range1 <= value

Заголовки

Idempotency-Key?string

Opaque client-generated key. A retry with the same key and body returns the original result instead of repeating the effect.

Match^[!-~]+$
Length8 <= length <= 128

Тело запроса

application/json

Типы TypeScript

Use the request body type in TypeScript.

Ответ

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/competitions/1/dataset-bindings/" \  -H "Content-Type: application/json" \  -d '{    "dataset_id": "string",    "dataset_version_id": "string"  }'
{  "id": "string",  "competition_id": 0,  "binding_type": "string",  "dataset_id": "string",  "dataset_version_id": "string",  "phase_id": 1,  "title": "string",  "mode": "string",  "mount_path": "string",  "runtime_path": "string",  "mount_scheme": "string",  "purpose": "string",  "access_scope": "string",  "access_mode": "string",  "usage_policy": "string",  "validation_status": "string",  "security_status": "string",  "notebook_visible": true,  "download_enabled": true,  "size_bytes": 0,  "file_count": 0,  "format": "string",  "schema_preview": {},  "metadata": {},  "created_at": "2019-08-24T14:15:22Z"}