curl --request PATCH \
--url https://api.salesnip.com/v1/projects/{projectId} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"name": "Acme",
"description": "Acme",
"support": {
"method": "EMAIL",
"url": "https//example.com/support",
"email": "[email protected]"
},
"theme": {
"shapes": "ROUNDED",
"light": {
"overview": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"chat": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"primary": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"input": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"message": {
"user": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"bot": {
"background": "#4043ff",
"foreground": "#4043ff"
}
}
},
"dark": {
"overview": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"chat": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"primary": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"input": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"message": {
"user": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"bot": {
"background": "#4043ff",
"foreground": "#4043ff"
}
}
}
}
}
'{
"success": true
}curl --request PATCH \
--url https://api.salesnip.com/v1/projects/{projectId} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"name": "Acme",
"description": "Acme",
"support": {
"method": "EMAIL",
"url": "https//example.com/support",
"email": "[email protected]"
},
"theme": {
"shapes": "ROUNDED",
"light": {
"overview": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"chat": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"primary": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"input": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"message": {
"user": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"bot": {
"background": "#4043ff",
"foreground": "#4043ff"
}
}
},
"dark": {
"overview": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"chat": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"primary": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"input": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"message": {
"user": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"bot": {
"background": "#4043ff",
"foreground": "#4043ff"
}
}
}
}
}
'{
"success": true
}The unique ID of the project.
1"project_abcdefghjijklmnop"
The name of the project.
3 - 25"Acme"
The name of the project.
3 - 25"Acme"
Show child attributes
The support method to choose from.
EMAIL, URL The URL to redirect to if the user requests to contact the support. This is required if you have support.method set to "URL".
"https//example.com/support"
The email address to redirect to if the user requests to contact the support. This is required if you have support.method set to "EMAIL".
The theme of the SaleSnip widget. This can be used to customize the colors of the widget to match your branding.
Show child attributes
This field determines the overall shape style of UI components in the SaleSnip widget.
ROUNDED, PILL, RECTANGULAR "ROUNDED"
The colors of the SaleSnip widget in light mode.
Show child attributes
Show child attributes
The colors of the SaleSnip widget in dark mode.
Show child attributes
Show child attributes
Success
true, false