Aller au contenu principal

SaveStakeHolderRequestBody

Request body of creating or updating a stakeholder with a specific UID

typestring | nullnullablerequired

Type of stakeholder (person or company)

Example: person
uidstring | nullnullable

Unique identifier of the stakeholder (must match the path parameter)

Example: 123e4567-e89b-12d3-a456-426614174000
firstNamestring | nullnullable

First name of the person (required of type=person)

Example: John
lastNamestring | nullnullable

Last name of the person (required of type=person)

Example: Doe
companyNamestring | nullnullable

Company name (required of type=company)

Example: Acme Corporation
sirenstring | nullnullable

SIREN number of the company (required of type=company)

Example: 123456789
addressstring | nullnullable

Address of the company

postalCodestring | nullnullable

Postal code of the company

citystring | nullnullable

City of the company

externalCodestring | nullnullable

External code of the company

contactsDetails object[]required

List of contact details of the stakeholder

  • Array [
  • emailstringrequired

    Email address of the contact (required of type=person/company)

    Example: john.doe@example.com
    phoneNumberstring | nullnullable

    Phone number of the contact (not required)

    Example: 0123456789
    additionalInfosstring | nullnullable

    Additional infos of the contact (not required)

  • ]
  • isActivebooleanrequired

    Active status of the stakeholder

    faxstring | nullnullable

    Fax of the company

    functionstring | nullnullable

    Function of the person

    parentUidstring | nullnullable

    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

    Example: 030f134a-fb24-4a16-8acb-d29d9ba50077
    phoneNumbers object[]

    Qualified phone numbers of the stakeholder

  • Array [
  • valuestringrequired

    Value of the coordinate (phone number or email)

    Example: 0611223344
    typestringrequired

    Qualifier of the coordinate

    Example: Mobile
    isPrimarybooleanrequired

    Whether this is the primary coordinate of its type

    Example: true
  • ]
  • emails object[]

    Qualified emails of the stakeholder

  • Array [
  • valuestringrequired

    Value of the coordinate (phone number or email)

    Example: 0611223344
    typestringrequired

    Qualifier of the coordinate

    Example: Mobile
    isPrimarybooleanrequired

    Whether this is the primary coordinate of its type

    Example: true
  • ]
  • creationDatestringrequired

    Date of creation of the stakeholder. Accepts a plain date (yyyy-MM-dd) or an ISO 8601 datetime; the time portion, if present, is ignored.

    Example: 2021-01-01
    SaveStakeHolderRequestBody
    {
    "type": "person",
    "uid": "123e4567-e89b-12d3-a456-426614174000",
    "firstName": "John",
    "lastName": "Doe",
    "companyName": "Acme Corporation",
    "siren": "123456789",
    "address": "string",
    "postalCode": "string",
    "city": "string",
    "externalCode": "string",
    "contactsDetails": [
    {
    "email": "john.doe@example.com",
    "phoneNumber": "0123456789",
    "additionalInfos": "string"
    }
    ],
    "isActive": true,
    "fax": "string",
    "function": "string",
    "parentUid": "030f134a-fb24-4a16-8acb-d29d9ba50077",
    "phoneNumbers": "Unknown Type: array,null",
    "emails": "Unknown Type: array,null",
    "creationDate": "2021-01-01"
    }