Add diagram_api