REST_API usage fix