Monica
Log in
MCP 219 tools

Browse the tools
Available tools

Relationships

A relationship is how two people are connected, such as a friend, a sibling or a parent and a child.

Choose a tool to see the parameters it accepts.

Tools

List the relationships of one contact, from either side, a page at a time: the type, both people with the role each holds, whether it is current or ended, and its dates.

vault string required
The id of the vault, as list-vaults gives it.
contact string required
The id of the contact, as list-contacts gives it.
page integer optional
The page to read, starting at 1.
per_page integer optional
How many relationships a page holds: 25 unless asked, 100 at most.

Read one relationship of a contact: the type, both people with the role each holds, whether it is current or ended, and its dates.

vault string required
The id of the vault, as list-vaults gives it.
contact string required
The id of either person in the relationship, as list-contacts gives it.
relationship string required
The id of the relationship, as list-contact-relationships gives it.

Add a partner, a family member or any other relative to a contact, with or without a record of their own, by linking them with a relationship type. The other person is an existing contact, a new person named here, or somebody whose name is unknown. One relationship holds both sides, so there is no reverse to add. A first name always creates a new person, even when somebody of that name exists. To link somebody who already exists, such as a child already added to the other parent, pass their id as other_contact: the answer of this tool gives it as contact_a or contact_b, and list-contacts finds people without a record of their own with the filter names-only. The change is written to the account log.

vault string required
The id of the vault holding both people, as list-vaults gives it.
contact string required
The id of the contact the relationship is recorded from, as list-contacts gives it.
relationship_type string required
The id of the relationship type, as list-relationship-types gives it. A type names a role for each side: role_a and role_b. A type that is symmetric gives both sides the same role, as partners do.
other_contact string optional
The id of the other person, an existing contact of the same vault, with or without a record of their own: list-contacts gives it, with the filter names-only for people without a record, and so does the answer of an earlier relationship. Leave other_contact out to name a new person with first_name, or to record somebody whose name is unknown.
first_name string optional
The first name of a new person, who is created by this call. Not allowed with other_contact. Never use it for somebody created by an earlier call.
last_name string optional
The last name of the other person. Needs first_name.
creates_record boolean optional
True to give the person named here a full record of their own in the vault. False when left out: they then exist only through this relationship.
holds_role_a boolean optional
Whether the contact holds role_a of the type and the other person role_b. For parent and child, where role_a is parent, true says the contact is the parent. True when left out. Ignored for a symmetric type.

Change a relationship of a contact: its type, whether it is current or ended, its dates, which side holds which role, or the name of somebody who exists only through it. The change is written to the account log.

vault string required
The id of the vault, as list-vaults gives it.
contact string required
The id of either person in the relationship, as list-contacts gives it. holds_role_a is read from the side of this person.
relationship string required
The id of the relationship, as list-contact-relationships gives it.
relationship_type string optional
The id of a new relationship type, as list-relationship-types gives it.
status string optional
Whether the relationship is current or ended. Setting it back to current clears the end date. One of: current, ended
started_on string optional
When it started, as YYYY-MM-DD.
ended_on string optional
When it ended, as YYYY-MM-DD, for an ended relationship. The end cannot fall before the start.
holds_role_a boolean optional
Whether the contact holds role_a of the type and the other person role_b. For parent and child, where role_a is parent, true says the contact is the parent. Ignored for a symmetric type.
first_name string optional
A first name for the other person, only when they exist through this relationship alone.
last_name string optional
The last name of the other person. Needs first_name.
creates_record boolean optional
True to give the other person, who exists through this relationship alone, a full record of their own.

Delete a relationship. It leaves both contacts at once. Neither person is deleted, including somebody who existed only through it. The change is written to the account log.

vault string required
The id of the vault, as list-vaults gives it.
contact string required
The id of either person in the relationship, as list-contacts gives it.
relationship string required
The id of the relationship, as list-contact-relationships gives it.