Create user settings
curl --request POST \
--url https://app.leadconduit.com/user_settings \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"notifications": {
"submission_doc_updates": {
"enabled": true,
"unsubscribed_at": "2023-11-07T05:31:56Z"
},
"connection_invites": {
"enabled": true,
"unsubscribed_at": "2023-11-07T05:31:56Z"
}
}
}
'import requests
url = "https://app.leadconduit.com/user_settings"
payload = { "notifications": {
"submission_doc_updates": {
"enabled": True,
"unsubscribed_at": "2023-11-07T05:31:56Z"
},
"connection_invites": {
"enabled": True,
"unsubscribed_at": "2023-11-07T05:31:56Z"
}
} }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
notifications: {
submission_doc_updates: {enabled: true, unsubscribed_at: '2023-11-07T05:31:56Z'},
connection_invites: {enabled: true, unsubscribed_at: '2023-11-07T05:31:56Z'}
}
})
};
fetch('https://app.leadconduit.com/user_settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.leadconduit.com/user_settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'notifications' => [
'submission_doc_updates' => [
'enabled' => true,
'unsubscribed_at' => '2023-11-07T05:31:56Z'
],
'connection_invites' => [
'enabled' => true,
'unsubscribed_at' => '2023-11-07T05:31:56Z'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.leadconduit.com/user_settings"
payload := strings.NewReader("{\n \"notifications\": {\n \"submission_doc_updates\": {\n \"enabled\": true,\n \"unsubscribed_at\": \"2023-11-07T05:31:56Z\"\n },\n \"connection_invites\": {\n \"enabled\": true,\n \"unsubscribed_at\": \"2023-11-07T05:31:56Z\"\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.leadconduit.com/user_settings")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"notifications\": {\n \"submission_doc_updates\": {\n \"enabled\": true,\n \"unsubscribed_at\": \"2023-11-07T05:31:56Z\"\n },\n \"connection_invites\": {\n \"enabled\": true,\n \"unsubscribed_at\": \"2023-11-07T05:31:56Z\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leadconduit.com/user_settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"notifications\": {\n \"submission_doc_updates\": {\n \"enabled\": true,\n \"unsubscribed_at\": \"2023-11-07T05:31:56Z\"\n },\n \"connection_invites\": {\n \"enabled\": true,\n \"unsubscribed_at\": \"2023-11-07T05:31:56Z\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "5fd4371e940df5a34a3888b2",
"notifications": {
"submission_doc_updates": {
"enabled": true,
"unsubscribed_at": "2023-11-07T05:31:56Z"
},
"connection_invites": {
"enabled": true,
"unsubscribed_at": "2023-11-07T05:31:56Z"
}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Account
Create user settings
Create a new user settings document, adding it to the list of all user settings in the account.
POST
/
user_settings
Create user settings
curl --request POST \
--url https://app.leadconduit.com/user_settings \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"notifications": {
"submission_doc_updates": {
"enabled": true,
"unsubscribed_at": "2023-11-07T05:31:56Z"
},
"connection_invites": {
"enabled": true,
"unsubscribed_at": "2023-11-07T05:31:56Z"
}
}
}
'import requests
url = "https://app.leadconduit.com/user_settings"
payload = { "notifications": {
"submission_doc_updates": {
"enabled": True,
"unsubscribed_at": "2023-11-07T05:31:56Z"
},
"connection_invites": {
"enabled": True,
"unsubscribed_at": "2023-11-07T05:31:56Z"
}
} }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
notifications: {
submission_doc_updates: {enabled: true, unsubscribed_at: '2023-11-07T05:31:56Z'},
connection_invites: {enabled: true, unsubscribed_at: '2023-11-07T05:31:56Z'}
}
})
};
fetch('https://app.leadconduit.com/user_settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.leadconduit.com/user_settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'notifications' => [
'submission_doc_updates' => [
'enabled' => true,
'unsubscribed_at' => '2023-11-07T05:31:56Z'
],
'connection_invites' => [
'enabled' => true,
'unsubscribed_at' => '2023-11-07T05:31:56Z'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.leadconduit.com/user_settings"
payload := strings.NewReader("{\n \"notifications\": {\n \"submission_doc_updates\": {\n \"enabled\": true,\n \"unsubscribed_at\": \"2023-11-07T05:31:56Z\"\n },\n \"connection_invites\": {\n \"enabled\": true,\n \"unsubscribed_at\": \"2023-11-07T05:31:56Z\"\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.leadconduit.com/user_settings")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"notifications\": {\n \"submission_doc_updates\": {\n \"enabled\": true,\n \"unsubscribed_at\": \"2023-11-07T05:31:56Z\"\n },\n \"connection_invites\": {\n \"enabled\": true,\n \"unsubscribed_at\": \"2023-11-07T05:31:56Z\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leadconduit.com/user_settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"notifications\": {\n \"submission_doc_updates\": {\n \"enabled\": true,\n \"unsubscribed_at\": \"2023-11-07T05:31:56Z\"\n },\n \"connection_invites\": {\n \"enabled\": true,\n \"unsubscribed_at\": \"2023-11-07T05:31:56Z\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "5fd4371e940df5a34a3888b2",
"notifications": {
"submission_doc_updates": {
"enabled": true,
"unsubscribed_at": "2023-11-07T05:31:56Z"
},
"connection_invites": {
"enabled": true,
"unsubscribed_at": "2023-11-07T05:31:56Z"
}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Authorizations
LeadConduit uses HTTP Basic Authentication
with the username API and your API key as the password.
For example: API:1f1b96c9150d8050e858c043d543bb4eadae0e6f'
Body
application/json
Create a new User Settings
User notification settings
Show child attributes
Show child attributes
Response
201 - application/json
Created
The ID of the setting which uniquely identifies it, same as user ID
Pattern:
^[0-9a-fA-F]{24}$Example:
"5fd4371e940df5a34a3888b2"
User notification settings
Show child attributes
Show child attributes
⌘I