Add setter to API definition