[api] save the attribute too in clean up job