Select default sending domain
curl --request PUT \
--url https://app.nudgen.net/api/v1/settings/sending-domains/default \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domainId": "<string>"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({domainId: '<string>'})
};
fetch('https://app.nudgen.net/api/v1/settings/sending-domains/default', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.nudgen.net/api/v1/settings/sending-domains/default"
payload = { "domainId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}API reference
Select default sending domain
Owner or admin only. Pass null to clear the custom default.
PUT
/
api
/
v1
/
settings
/
sending-domains
/
default
Select default sending domain
curl --request PUT \
--url https://app.nudgen.net/api/v1/settings/sending-domains/default \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domainId": "<string>"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({domainId: '<string>'})
};
fetch('https://app.nudgen.net/api/v1/settings/sending-domains/default', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.nudgen.net/api/v1/settings/sending-domains/default"
payload = { "domainId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Personal Access Token created from Settings -> API Keys.
Query Parameters
ID of the currently active workspace. Must match the authenticated team.
Body
application/json
Maximum string length:
100Response
Default updated
Was this page helpful?