MCPcopy Create free account
hub / github.com/HumanSignal/label-studio / create

Method create

label_studio/projects/api.py:505–515  ·  view source on GitHub ↗
(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

503 return super(LabelConfigValidateAPI, self).post(request, *args, **kwargs)
504
505 def create(self, request, *args, **kwargs):
506 serializer = self.get_serializer(data=request.data)
507 try:
508 serializer.is_valid(raise_exception=True)
509 except RestValidationError as exc:
510 context = self.get_exception_handler_context()
511 response = exception_handler(exc, context)
512 response = self.finalize_response(request, response)
513 return response
514
515 return Response(status=status.HTTP_204_NO_CONTENT)
516
517
518@method_decorator(

Callers 8

add_collaboratorMethod · 0.45
setUpTestDataMethod · 0.45
forward_migrationFunction · 0.45
reverse_migrationFunction · 0.45
forward_migrationFunction · 0.45
reverse_migrationFunction · 0.45
_fill_label_config_hashFunction · 0.45
forward_migrationFunction · 0.45

Calls 1

get_serializerMethod · 0.80

Tested by 1

setUpTestDataMethod · 0.36