v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1442519.0 KB

Updates the reward values for a trajectory and transitions it to reward-received status, signaling that it is eligible for processing. Call this operation after CompleteRollout to provide the computed reward scores.

post/update-reward#X-Amzn-SageMaker-Job-Arn

Headers

X-Amzn-SageMaker-Job-Arnstring required

The job ARN.

Request body

TrajectoryIdstring required

The trajectory ID to update with reward values.

RewardsDouble[] required

The list of reward values to assign to this trajectory. Provide one reward value per turn in the trajectory.

ClientTokenstring

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Response

Success

UpdateRewardResponse required