@rpcmethod(
    name='configuration.sc.create',
    signature=['String', 'String', 'String'],
    login_required=satnet_settings.JRPC_LOGIN_REQUIRED
)
def create(identifier, callsign, tle_id, **kwargs):

    try:

        user, username = account_models.get_user(
            http_request=kwargs.get('request', None)
        )

        sc = segments.Spacecraft.objects.create(
            tle_id,
            username=username,
            identifier=identifier,
            callsign=callsign
        )

    except Exception as ex:

        logger.exception(ex)
        raise ex

    return {
        segment_serializers.SC_ID_K: str(sc.identifier)
    }
JRPC test: configuration.sc.create
dataset/ETHPy150Open satnet-project/server/services/configuration/jrpc/views/segments/spacecraft.py/create