mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 00:49:42 -06:00
docs: fixes the bulk contact upload api docs and adds the email property (#6066)
Co-authored-by: Johannes <johannes@formbricks.com>
This commit is contained in:
@@ -1523,12 +1523,15 @@ paths:
|
||||
put:
|
||||
operationId: uploadBulkContacts
|
||||
summary: Upload Bulk Contacts
|
||||
description: Uploads contacts in bulk
|
||||
description: Uploads contacts in bulk. Each contact in the payload must have an
|
||||
'email' attribute present in their attributes array. The email attribute
|
||||
is mandatory and must be a valid email format.
|
||||
tags:
|
||||
- Management API > Contacts
|
||||
requestBody:
|
||||
required: true
|
||||
description: The contacts to upload
|
||||
description: The contacts to upload. Each contact **must include an 'email'
|
||||
attribute** in their attributes array.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@@ -1567,6 +1570,35 @@ paths:
|
||||
required:
|
||||
- environmentId
|
||||
- contacts
|
||||
example:
|
||||
environmentId: env_01h2xce9q8p3w4x5y6z7a8b9c0
|
||||
contacts:
|
||||
- attributes:
|
||||
- attributeKey:
|
||||
key: email
|
||||
name: Email Address
|
||||
value: john.doe@example.com
|
||||
- attributeKey:
|
||||
key: firstName
|
||||
name: First Name
|
||||
value: John
|
||||
- attributeKey:
|
||||
key: lastName
|
||||
name: Last Name
|
||||
value: Doe
|
||||
- attributes:
|
||||
- attributeKey:
|
||||
key: email
|
||||
name: Email Address
|
||||
value: jane.smith@example.com
|
||||
- attributeKey:
|
||||
key: firstName
|
||||
name: First Name
|
||||
value: Jane
|
||||
- attributeKey:
|
||||
key: lastName
|
||||
name: Last Name
|
||||
value: Smith
|
||||
responses:
|
||||
"200":
|
||||
description: Contacts uploaded successfully.
|
||||
|
||||
Reference in New Issue
Block a user