CreateStakeHolderRequestBody
Request body for creating a new stakeholder
Type of stakeholder (person or company)
personFirst name of the person. Required for type=person, optional for a contact attached to a company (parentUid).
JohnLast name of the person, required for type=person. The single name ("Nom du contact") of a contact attached to a company.
DoeCompany name (required for type=company)
Acme CorporationSIREN number for company (required for type=company)
123456789Address of the company
Postal code of the company
City of the company
External code of the company
contactsDetails object[]
Contact details of the company
Email address of the contact. A person needs one, unless it is a contact attached to a company with a phone number.
john.doe@example.comPhone number of the contact (not required)
0123456789Additional infos of the contact (not required)
Contact active status of the company or person
Fax of the company
Function of the person
Refers to the stakeholder hierarchy only (not the asset perimeter or a contract): uid of this stakeholder's parent company — the mother company for a company, the attachment company for a person
030f134a-fb24-4a16-8acb-d29d9ba50077Whether this person is the primary contact of its parent company (stakeholder hierarchy, see parentUid). Requires a parentUid; at most one child per parent, so setting true demotes the current primary contact.
truephoneNumbers object[]
Qualified phone numbers of the stakeholder
Value of the coordinate (phone number or email)
0611223344Qualifier of the coordinate
MobileWhether this is the primary coordinate of its type
trueemails object[]
Qualified emails of the stakeholder. A person needs an email (here or in contactsDetails); a contact attached to a company needs an email or a phone number.
Value of the coordinate (phone number or email)
0611223344Qualifier of the coordinate
MobileWhether this is the primary coordinate of its type
true{
"type": "person",
"firstName": "John",
"lastName": "Doe",
"companyName": "Acme Corporation",
"siren": "123456789",
"address": "string",
"postalCode": "string",
"city": "string",
"externalCode": "string",
"contactsDetails": "Unknown Type: array,null",
"isActive": true,
"fax": "string",
"function": "string",
"parentUid": "030f134a-fb24-4a16-8acb-d29d9ba50077",
"isPrimaryContact": true,
"phoneNumbers": "Unknown Type: array,null",
"emails": "Unknown Type: array,null"
}