change_element_type
mutationSince v1.0Change the type of existing nodes or relationships in place. Each element keeps its id, description, tags and diagram placements. Property values carry over when the new type has a property with the same name and data type, and relationships are kept when the new type is allowed to have them. If any element would lose a relationship or a filled-in value, the whole call is refused and nothing changes; the error names what would be lost. Pass allow_lossy=true to go ahead anyway. A clash of auto-IDs, or an element tied to a simulation agent or link, always blocks the change. Send the whole reorganisation in one call. An autosave version is saved first, and the change is undoable.
Example Request
{"elements": [{"element_id": "REQ-42", "new_type": "Feature"}, {"element_id": "REQ-43", "new_type": "Feature"}]}This content was written collaboratively with AI.