Skip to main content
PUT
/
admin
/
site-configs
/
{id}
Update site configuration
curl --request PUT \
  --url https://api.sprucecollective.co.uk/admin/site-configs/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "additional_settings": {},
  "brevo_api_key": "<string>",
  "brevo_contact_list_id": "<string>",
  "display_name": "<string>",
  "domain": "<string>",
  "email_bcc_for_purchases": "<string>",
  "email_provider": "<string>",
  "frontend_url": "<string>",
  "sendgrid_api_key": "<string>",
  "sendgrid_generic_magic_link_template_id": "<string>",
  "sendgrid_generic_password_reset_template_id": "<string>",
  "sendgrid_generic_password_set_template_id": "<string>",
  "sendgrid_generic_purchase_existing_template_id": "<string>",
  "sendgrid_generic_purchase_new_template_id": "<string>",
  "sendgrid_generic_raffle_entry_template_id": "<string>",
  "sendgrid_generic_webflow_new_user_template_id": "<string>",
  "sendgrid_generic_welcome_template_id": "<string>",
  "sendgrid_magic_link_template_id": "<string>",
  "sendgrid_master_template_id": "<string>",
  "sendgrid_password_reset_template_id": "<string>",
  "sendgrid_password_set_template_id": "<string>",
  "sendgrid_purchase_existing_template_id": "<string>",
  "sendgrid_purchase_new_template_id": "<string>",
  "sendgrid_raffle_entry_template_id": "<string>",
  "sendgrid_webflow_new_user_template_id": "<string>",
  "sendgrid_welcome_template_id": "<string>",
  "smtp_from": "<string>",
  "smtp_from_name": "<string>",
  "smtp_host": "<string>",
  "smtp_password": "<string>",
  "smtp_port": 123,
  "smtp_reply_to": "<string>",
  "smtp_username": "<string>",
  "triplewhale_api_key": "<string>"
}
'
{
  "additional_settings": {},
  "brevo_api_key": "<string>",
  "brevo_contact_list_id": "<string>",
  "created_at": "<string>",
  "display_name": "<string>",
  "domain": "<string>",
  "email_bcc_for_purchases": "<string>",
  "email_provider": "<string>",
  "frontend_url": "<string>",
  "id": "<string>",
  "sendgrid_api_key": "<string>",
  "sendgrid_generic_magic_link_template_id": "<string>",
  "sendgrid_generic_password_reset_template_id": "<string>",
  "sendgrid_generic_password_set_template_id": "<string>",
  "sendgrid_generic_purchase_existing_template_id": "<string>",
  "sendgrid_generic_purchase_new_template_id": "<string>",
  "sendgrid_generic_raffle_entry_template_id": "<string>",
  "sendgrid_generic_webflow_new_user_template_id": "<string>",
  "sendgrid_generic_welcome_template_id": "<string>",
  "sendgrid_magic_link_template_id": "<string>",
  "sendgrid_master_template_id": "<string>",
  "sendgrid_password_reset_template_id": "<string>",
  "sendgrid_password_set_template_id": "<string>",
  "sendgrid_purchase_existing_template_id": "<string>",
  "sendgrid_purchase_new_template_id": "<string>",
  "sendgrid_raffle_entry_template_id": "<string>",
  "sendgrid_webflow_new_user_template_id": "<string>",
  "sendgrid_welcome_template_id": "<string>",
  "site_id": "<string>",
  "smtp_from": "<string>",
  "smtp_from_name": "<string>",
  "smtp_host": "<string>",
  "smtp_password": "<string>",
  "smtp_port": 123,
  "smtp_reply_to": "<string>",
  "smtp_username": "<string>",
  "triplewhale_api_key": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Path Parameters

id
string
required

Site configuration UUID or site identifier

Body

application/json

Site configuration update payload

additional_settings
object
brevo_api_key
string
brevo_contact_list_id
string
display_name
string
domain
string
email_bcc_for_purchases
string
email_provider
string
frontend_url
string
sendgrid_api_key
string
sendgrid_generic_password_reset_template_id
string
sendgrid_generic_password_set_template_id
string
sendgrid_generic_purchase_existing_template_id
string
sendgrid_generic_purchase_new_template_id
string
sendgrid_generic_raffle_entry_template_id
string
sendgrid_generic_webflow_new_user_template_id
string
sendgrid_generic_welcome_template_id
string
sendgrid_master_template_id
string
sendgrid_password_reset_template_id
string
sendgrid_password_set_template_id
string
sendgrid_purchase_existing_template_id
string
sendgrid_purchase_new_template_id
string
sendgrid_raffle_entry_template_id
string
sendgrid_webflow_new_user_template_id
string
sendgrid_welcome_template_id
string
smtp_from
string
smtp_from_name
string
smtp_host
string
smtp_password
string
smtp_port
integer
smtp_reply_to
string
smtp_username
string
triplewhale_api_key
string

Response

OK

additional_settings
object
brevo_api_key
string

Brevo overrides

brevo_contact_list_id
string
created_at
string
display_name
string
domain
string
email_bcc_for_purchases
string

Email BCC for purchases

email_provider
string

Email / SendGrid overrides

frontend_url
string
id
string
sendgrid_api_key
string
sendgrid_generic_password_reset_template_id
string
sendgrid_generic_password_set_template_id
string
sendgrid_generic_purchase_existing_template_id
string
sendgrid_generic_purchase_new_template_id
string
sendgrid_generic_raffle_entry_template_id
string
sendgrid_generic_webflow_new_user_template_id
string
sendgrid_generic_welcome_template_id
string
sendgrid_master_template_id
string
sendgrid_password_reset_template_id
string
sendgrid_password_set_template_id
string
sendgrid_purchase_existing_template_id
string
sendgrid_purchase_new_template_id
string
sendgrid_raffle_entry_template_id
string
sendgrid_webflow_new_user_template_id
string
sendgrid_welcome_template_id
string
site_id
string
smtp_from
string
smtp_from_name
string
smtp_host
string

SMTP overrides

smtp_password
string
smtp_port
integer
smtp_reply_to
string
smtp_username
string
triplewhale_api_key
string

Triple Whale overrides

updated_at
string