PATCH/api/v1/projects/{project_id}
update_project_settings
Renames a project and changes its settings: sender, transport, tracking, footer, branding of the public pages, quotas.
- Call it
- to set defaults so campaigns need not repeat them.
- Needs
- an admin key and a project that is not deleted. Settings left out keep their values; null clears a setting that may be empty.
- Returns
- the project after the change, the same as
PATCH /api/v1/projects/{project_id}.
Arguments
- object
-
project_idstring · uuidrequiredThe project’s id.
-
namestringThe new name; leave it out to keep the name.
-
settingsSettingsArgumentsSettings to change; the rest keep their values.
11 fields
- SettingsArguments object
-
auto_footerboolean | nullAdd an unsubscribe footer when a template has none.
-
brandingBrandingArgumentsBranding of the public pages.
4 fields
- BrandingArguments object
-
brand_namestring | nullThe name the pages show, 1 to 128 characters.
-
languagestring | nullenorru. -
support_emailstring | nullThe address the pages give for questions.
-
text_overridesmap of string → string | nullTexts of the pages by key, replacing every override at once: at most 64, keys
[a-z][a-z0-9_]*, texts 1 to 2000 characters.
-
daily_send_quotainteger · int64 | nullMost messages a day, 1 or more;
null: no quota. -
default_throttle_per_hourinteger · int64 | nullDefault campaign speed, messages an hour;
null: no limit. -
dns_credentialsDnsCredentialsArgumentsThe project’s DNS-provider credentials.
1 fields
- DnsCredentialsArguments object
-
porkbunPorkbunCredentialsArguments | nullPorkbun credentials; set them,
nullclears them, left out keeps them. They override the node’s global[dns.porkbun].2 fields
- PorkbunCredentialsArguments object · all fields required
-
api_keystringThe Porkbun API key.
-
secret_api_keystringThe Porkbun secret API key.
-
from_emailstring | nullDefault sender address of campaigns.
-
from_namestring | nullDefault sender name of campaigns, 1 to 128 characters, no line breaks.
-
reply_tostring | nullDefault
Reply-Toaddress. -
soft_bounce_suppress_afterinteger · int64 | nullSoft bounces in a row after which an address is suppressed;
null: off. -
trackingTrackingArgumentsTracking defaults.
2 fields
- TrackingArguments object
-
clicksboolean | nullClick redirects.
-
opensboolean | nullOpen pixel.
-
transportstring | nullDefault transport:
directorrelay:<name>of a relay the node offers (get_server_info);null: the node’s default.
No other arguments are accepted.
Result
The result comes back as structuredContent, with the same JSON as a text block.
- object · all fields required
-
created_atstring · date-time -
deleted_atstring · date-time | nullWhen the project was deleted;
nullwhile it is live. A deleted project can only be read. -
idstring · uuid -
namestring -
settingsProjectSettingsA project’s settings, every field present.
11 fields
- ProjectSettings object · all fields required
-
auto_footerbooleanAdd an unsubscribe footer when a template has none.
-
brandingBrandingHow the public pages look.
4 fields
- Branding object · all fields required
-
brand_namestring | null -
languagePageLanguageThe language of the public pages.
- en
- ru
-
support_emailstring | null -
text_overridesmap of string → stringTexts of the pages by key.
-
daily_send_quotainteger · uint32 | nullMost messages a day;
null: no quota.≥ 0
-
default_throttle_per_hourinteger · uint32 | nullDefault campaign speed, messages an hour;
null: no limit.≥ 0
-
dns_credentialsDnsCredentialsWhich DNS providers the project set its own credentials for; the credentials themselves are never returned.
1 fields
- DnsCredentials object · all fields required
-
porkbunbooleanWhether the project set its own Porkbun credentials.
-
from_emailstring | nullDefault sender address of campaigns.
-
from_namestring | nullDefault sender name of campaigns.
-
reply_tostring | nullDefault
Reply-To. -
soft_bounce_suppress_afterinteger · uint32 | nullSoft bounces in a row after which an address is suppressed;
null: off.≥ 0
-
trackingTrackingWhat campaigns track by default.
2 fields
- Tracking object · all fields required
-
clicksboolean -
opensboolean
-
transportstring | nullDefault transport,
directorrelay:<name>;null: the node’s default.
-
slugstringUnique among live projects; it never changes.
-
updated_atstring · date-timeThe latest change: creation, rename, settings, deletion.
Definitions
Branding
How the public pages look.
- object · all fields required
-
brand_namestring | null -
languagePageLanguageThe language of the public pages.
- en
- ru
-
support_emailstring | null -
text_overridesmap of string → stringTexts of the pages by key.
BrandingArguments
Branding of the public pages to set.
- object
-
brand_namestring | nullThe name the pages show, 1 to 128 characters.
-
languagestring | nullenorru. -
support_emailstring | nullThe address the pages give for questions.
-
text_overridesmap of string → string | nullTexts of the pages by key, replacing every override at once: at most 64, keys
[a-z][a-z0-9_]*, texts 1 to 2000 characters.
DnsCredentials
Which DNS providers the project set its own credentials for; the credentials themselves are never returned.
- object · all fields required
-
porkbunbooleanWhether the project set its own Porkbun credentials.
DnsCredentialsArguments
A project’s DNS-provider credentials to set. Write-only: a project read never returns them.
- object
-
porkbunPorkbunCredentialsArguments | nullPorkbun credentials; set them,
nullclears them, left out keeps them. They override the node’s global[dns.porkbun].
PageLanguage
The language of the public pages.
string · enum
- en
- ru
PorkbunCredentialsArguments
Porkbun API credentials.
- object · all fields required
-
api_keystringThe Porkbun API key.
-
secret_api_keystringThe Porkbun secret API key.
ProjectSettings
A project’s settings, every field present.
- object · all fields required
-
auto_footerbooleanAdd an unsubscribe footer when a template has none.
-
brandingBrandingHow the public pages look.
see Branding
-
daily_send_quotainteger · uint32 | nullMost messages a day;
null: no quota.≥ 0
-
default_throttle_per_hourinteger · uint32 | nullDefault campaign speed, messages an hour;
null: no limit.≥ 0
-
dns_credentialsDnsCredentialsWhich DNS providers the project set its own credentials for; the credentials themselves are never returned.
see DnsCredentials
-
from_emailstring | nullDefault sender address of campaigns.
-
from_namestring | nullDefault sender name of campaigns.
-
reply_tostring | nullDefault
Reply-To. -
soft_bounce_suppress_afterinteger · uint32 | nullSoft bounces in a row after which an address is suppressed;
null: off.≥ 0
-
trackingTrackingWhat campaigns track by default.
see Tracking
-
transportstring | nullDefault transport,
directorrelay:<name>;null: the node’s default.
SettingsArguments
Project settings to set: a field left out keeps its value (the default
for a new project), null clears a field that may be empty.
- object
-
auto_footerboolean | nullAdd an unsubscribe footer when a template has none.
-
brandingBrandingArgumentsBranding of the public pages.
-
daily_send_quotainteger · int64 | nullMost messages a day, 1 or more;
null: no quota. -
default_throttle_per_hourinteger · int64 | nullDefault campaign speed, messages an hour;
null: no limit. -
dns_credentialsDnsCredentialsArgumentsThe project’s DNS-provider credentials.
-
from_emailstring | nullDefault sender address of campaigns.
-
from_namestring | nullDefault sender name of campaigns, 1 to 128 characters, no line breaks.
-
reply_tostring | nullDefault
Reply-Toaddress. -
soft_bounce_suppress_afterinteger · int64 | nullSoft bounces in a row after which an address is suppressed;
null: off. -
trackingTrackingArgumentsTracking defaults.
-
transportstring | nullDefault transport:
directorrelay:<name>of a relay the node offers (get_server_info);null: the node’s default.
Tracking
What campaigns track by default.
- object · all fields required
-
clicksboolean -
opensboolean
TrackingArguments
Tracking defaults to set.
- object
-
clicksboolean | nullClick redirects.
-
opensboolean | nullOpen pixel.
Errors
A failed call answers isError: true with a code from the same table as the HTTP API, and detail. How tools report errors
HTTP API
The same operation over HTTP: PATCH /api/v1/projects/{project_id}