Api Testsets Create 3

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

testset_idstringRequired

Request

This endpoint expects an object.
namestringRequired1-100 characters
testset_unique_idstringOptional<=100 characters
descriptionstringOptional
column_definitionslist of anyOptional
starredbooleanOptional
tagslist of stringsOptional

Response

projectstring or nullRead-only
idstringRead-only
created_atdatetimeRead-only
namestring<=100 characters
updated_atdatetimeRead-only
row_countintegerRead-only
column_countintegerRead-only
max_insertions_before_rebalanceintegerRead-only
used_row_indexeslist of doublesRead-only
current_max_row_indexdoubleRead-only
created_byinteger or nullRead-only
organizationintegerRead-only
updated_byinteger or nullRead-only
testset_unique_idstring<=100 characters
descriptionstring
column_definitionslist of any
starredboolean
tagslist of strings