Handle attributes through the API.