Deployment and traffic

Read and set a task's deployment record, and read its hourly serving traffic.

GET
/v1/tasks/{slug}/deployment

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string

Response Body

application/json

curl -X GET "https://example.com/v1/tasks/string/deployment"
{  "deployment": {    "mode": "off",    "studentModel": "string",    "threshold": 0,    "targetError": 0,    "shadowSample": 0,    "activeFrom": "string"  }}
PUT
/v1/tasks/{slug}/deployment

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/tasks/string/deployment" \  -H "Content-Type: application/json" \  -d '{    "mode": "off",    "targetError": 0.5  }'
{  "deployment": {    "mode": "off",    "studentModel": "string",    "threshold": 0,    "targetError": 0,    "shadowSample": 0,    "activeFrom": "string"  }}
{  "error": "string",  "issues": [    {      "message": "string",      "path": [        "string"      ]    }  ]}
{  "error": "unauthorized"}
{  "error": "forbidden"}
{  "error": "not_found"}
GET
/v1/tasks/{slug}/traffic

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string

Query Parameters

hours?integer

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/tasks/string/traffic"
{  "buckets": [    {      "hour": "string",      "total": 0,      "served_student": 0,      "deferred": 0,      "model_mismatch": 0,      "p95_student_ms": 0,      "p95_cloud_ms": 0    }  ],  "deferralShare": 0}
{  "error": "string",  "issues": [    {      "message": "string",      "path": [        "string"      ]    }  ]}