Skip to main content
POST
Weights sync

Authorizations

Authorization
string
header
default:default
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string
required

Required key that makes retries return the original operation; use a new key for changed request bodies.

Path Parameters

session_id
string
required

Training session ID

Body

application/json

Request body for publishing updated policy parameters for sampling.

weight_sync_type
enum<string>
required

How updated parameters are made available for sampling. See WeightSyncType for accepted values.

Available options:
WEIGHT_SYNC_TYPE_SYNCHRONOUS,
WEIGHT_SYNC_TYPE_BACKGROUND_PUBLISH,
WEIGHT_SYNC_TYPE_PIPELINE

Response

Weights-sync operation details

Async weights-sync operation

id
string
required

Operation ID

Example:

"550e8400-e29b-41d4-a716-446655440000"

status
enum<string>
default:TRAINING_OPERATION_STATUS_UNSPECIFIED
required

Operation status

Available options:
TRAINING_OPERATION_STATUS_UNSPECIFIED,
TRAINING_OPERATION_STATUS_PENDING,
TRAINING_OPERATION_STATUS_RUNNING,
TRAINING_OPERATION_STATUS_COMPLETED,
TRAINING_OPERATION_STATUS_FAILED
output
object

Result on success

error
object

Error details on failure