SA REST API : System Architect REST API : Delete diagram/definition instance
  
Delete diagram/definition instance
Delete instance of a diagram/definition.
Syntax
http://<Machine Name|IP>:<Port>/SARest/SQL/<Server Name>/<Encyclopedia Name>/<Workspace ID>/DeleteDefinition
An update session can also be supplied with ..?updateSession=<SessionID>
This must be a POST request and the data in the body must contain XML of the following structure.
<any>
   <DefinitionId>id</DefinitionId>
</any>
Example
http://localhost:8889/SARest/SQL/MySQLServer/Samples/1/DeleteDefinition
A session ID can be provided as follows:
http://localhost:8889/SARest/SQL/MySQLServer/Samples/1/DeleteDefinition?updateSession=text
With supplied data:
<any>
   <DefinitionId>28450</DefinitionId>
</any>
Results
<DeleteDefinitionResult>
   Message
</DeleteDefinitionResult>
If the Message string is blank then the definition/diagram was deleted. Otherwise the message explains why the operation did not succeed.
Comments
A SessionID string is obtained using the StartSession function. See that topic for an explanation.
More than one SAProperty node can be supplied, in which case they are processed in the sequence in which they occur.
This requires SAXT to be installed and for SAREST to have been configured with the SAXT URL.
See also
Handle encyclopedia transactions
Parent topic
System Architect REST API