Delete
DELETE /api/<class>/<object id>/[?cascade]
Deletion of an object corresponds to setting the attribute active
to false
, in almost all classes.
These deleted objects can be shown in a list (see chapter Get - deleted objects), in detail
and most of them can be re-enabled (there are exceptions, e.g. inputs).
The parameter cascade
cascades the deletion to child objects. Works just for these classes:
affectedgene / triggeredgene / driver
→ genotype
→ fishline
→ stock
→ substock
Re-enable (undelete)
PUT /api/<class>/<object id>/enable/
This function is not available for any input
.
Exceptions
- These classes are physically deleted from the database:
position
rack
attachment
- These classes can't be deleted:
message
input
- typesupdate_*
andrequest_*
- These classes can't be re-enabled:
input