According to documentation, this should persist the “meta” section:
$res = $client
->post("https://api.cloudflare.com/client/v4/accounts/$cfAccount/stream/direct_upload", [
'json' => [
'maxDurationSeconds' => 60 * 5,
'meta' => [
'rlTenantId' => (string)$website->id,
'rlTenantUuid' => (string)$website->uuid,
'env' => app()->environment(),
],
]
]);
It persists maxDurationSeconds fine, but saves none of the meta fields (not visible from stream web UI or api request).