Api V 2 Experiments Logs Create
Default POST handler with automatic organization injection.
For CREATE operations:
- Superadmins can specify organization_id in request body (API key only)
- Regular users always use their own organization
Override this method for:
- POST-for-filtering pattern (delegate to self.get())
- Custom pre-create validation
Note: ``inject_target_organization`` is a DEPRECATED ``request.data``-mutating
shim kept for backward-compat during the DEV-9410 migration. The blessed
path stamps org via ``get_create_save_kwargs`` → ``perform_create`` → a
``read_only`` serializer field. The shim (and these overrides' reliance on
it) is removed in C18 (DEV-9430) once every view's org field is read_only.
Authentication
AuthorizationBearer
JWT access token or Respan API key
Path parameters
experiment_id
log_id
Request
This endpoint expects an object.
id
trace_unique_id
root_span_unique_id
unique_organization_id
environment
customer_identifier
start_time
end_time
duration
span_count
llm_call_count
total_cost
total_prompt_tokens
total_completion_tokens
total_tokens
error_count
name
input
output
storage_object_key
comparison_key
status
expected_output
updated_storage_object_key
latency
Response
id
trace_unique_id
scores
span_tree
root_span_unique_id
unique_organization_id
environment
customer_identifier
start_time
end_time
duration
span_count
llm_call_count
total_cost
total_prompt_tokens
total_completion_tokens
total_tokens
error_count
name
input
output
storage_object_key
comparison_key
status
expected_output
updated_storage_object_key
latency