To change the lifecycle state of related documents, you can use the operation op_update_lifecycle_on_relations.
The available parameters are:
- Doctype_name: Name of the form where the related documents are located. Note: if this field is filled in, all relations from that form are retrieved, regardless of type.
- Life_cicle_state_name: Name of the lifecycle state to which you want to transition.
- Relation_type: Type of relation. Note: this field is only taken into account if the doctype is not specified.