api set rewrited