Rewrite API definition.