@handle(methods.set_param, param_id='id', env='tid')
async def set_param(self, env: data.Environment, param_id: str, source: ParameterSource, value: str, resource_id: str, metadata: JsonType, recompile: bool) -> Apireturn:
    result = (await self._update_param(env, param_id, value, source, resource_id, metadata, recompile))
    warnings = None
    if result:
        compile_metadata = {'message': 'Recompile model because one or more parameters were updated', 'type': 'param', 'params': [(param_id, resource_id)]}
        warnings = (await self.server_slice._async_recompile(env, False, metadata=compile_metadata))
    if (resource_id is None):
        resource_id = ''
    params = (await data.Parameter.get_list(environment=env.id, name=param_id, resource_id=resource_id))
    return attach_warnings(200, {'parameter': params[0]}, warnings)
@handle(methods.set_param, param_id='id', env='tid')
async def set_param(self, env: data.Environment, param_id: str, source: ParameterSource, value: str, resource_id: str, metadata: JsonType, recompile: bool) -> Apireturn:
    result = (await self._update_param(env, param_id, value, source, resource_id, metadata, recompile))
    warnings = None
    if result:
        compile_metadata = {'message': 'Recompile model because one or more parameters were updated', 'type': 'param', 'params': [(param_id, resource_id)]}
        warnings = (await self.server_slice._async_recompile(env, False, metadata=compile_metadata))
    if (resource_id is None):
        resource_id = 
    params = (await data.Parameter.get_list(environment=env.id, name=param_id, resource_id=resource_id))
    return attach_warnings(200, {'parameter': params[0]}, warnings)