API Reference / Relationship Types
/relationship_types Create a new relationship type
Creates a relationship type from a variants list: one variant name makes a symmetrical type (Partner/Partner), two make a directional one (Manager/Reports to). Whether a type is symmetrical is derived from that count, not set directly. An account is limited to 50 types, and variant names to 35 characters.
Maintained by the OnePageCRM engineering team
Request body
variantsarray<object>The relationship variants.
array item fields β
namestringThe relationship variant name.
Responses
201 Created
statusintegerint32Response code
messagestringResponse message
timestampintegerunix-timestampResponse time
dataobjectobject fields β
relationship_typesarray<object>array item fields β
relationship_typeobjectThe relationship types that identifies the relationships between the contacts.
object fields β
idstringbson-idID of the relationship type
symmetricalbooleanIs the relationship symmetrical? (read only).
relationship_variantsarray<object>requiredThe directional variants of this relationship type.
array item fields β
idstringbson-idID of the relationship type
namestringThe relationship variant name
created_atstringdate-timeCreation time of the relationship type
modified_atstringdate-timeLast modification time of the relationship type
Standard error responses: 400 Β· 401 Β· 403 Β· 404 Β· 409 Β· 500 β shared across the API. See Errors.