Chemical drawings cannot be created directly using the API endpoint POST/entities in Signals Notebook. However, users can add chemical drawings to experiments by uploading CDXML files using an alternative API endpoint.
To accomplish this process, you must perform the following steps:
- Access to Signals Notebook Swagger.
- Search for the endpoint POST/entities/{eid}/children/{filename}.
- Click on "Try it out".
- Replace {eid} with the experiment ID where the chemical drawing should be added.
- Replace {filename} with the name of your CDXML file (e.g., "ChemDrawDocument.cdxml").
- Set the "force" parameter to "True" in your request.
- Upload the cdxml file.
- Click on "Execute".
In case you require an empty CDXML file for this process, you can find an empty file attached to this article.