Zum Hauptinhalt springen
POST
/
partner
Create partner
curl --request POST \
  --url https://demo.enneo.ai/api/mind/partner \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "business": false,
  "email": "[email protected]",
  "zip": "10409",
  "city": "Berlin",
  "phone": "+4915324567843",
  "tagIds": [],
  "address": null,
  "company": null,
  "country": "Germany",
  "lastname": "Jones",
  "firstname": "Mia",
  "serviceId": "5353543",
  "link": null,
  "salutation": null,
  "contractIds": [],
  "emailMatches": null,
  "description": null,
  "additionalData": null,
  "billingAddress": null,
  "deliveryAddress": null
}
'
{
  "id": 1,
  "success": true
}

Autorisierungen

Authorization
string
header
erforderlich

JWT-based authentication

Body

application/json
business
boolean
erforderlich

Whether the partner is a business entity

Beispiel:

false

email
string

The email of the partner

zip
string | null

The postal code of the partner's address

Beispiel:

"10409"

city
string | null

The city of the partner's address

Beispiel:

"Berlin"

phone
string | null

The partner's phone number

Beispiel:

"+4915324567843"

tagIds
integer[]

A list of tag IDs associated with the partner

Beispiel:
[]
address
string | null

The street and house number of the partner's address

Beispiel:

null

company
string | null

The name of the company the partner is associated with, if any

Beispiel:

null

country
string | null

The country of the partner

Beispiel:

"Germany"

lastname
string | null

The partner's last name

Beispiel:

"Jones"

firstname
string | null

The partner's first name

Beispiel:

"Mia"

serviceId
string | null

The service ID of the partner

Beispiel:

"5353543"

The link of the partner

Beispiel:

null

salutation
string | null

The salutation (e.g., Mr., Mrs.) of the partner

Beispiel:

null

contractIds
integer[]

A list of contract IDs associated with the partner

Beispiel:
[]
emailMatches
string[] | null

Possible email matches associated with the partner

Beispiel:

null

description
string | null

The description of the partner

Beispiel:

null

additionalData
string | null

Any additional data related to the partner

Beispiel:

null

billingAddress
string | null

The partner's billing address

Beispiel:

null

deliveryAddress
string | null

The partner's delivery address

Beispiel:

null

Antwort

Successful operation

id
integer
Beispiel:

1

success
boolean
Beispiel:

true