api_object_create: support attribute creation