curl --request PUT \
--url https://{deployment}.convex.site/v1/projects/{projectId}/source \
--header 'Content-Type: application/json' \
--data '
{
"greeting": "Hello",
"auth": {
"login": "Log in"
}
}
'{
"version": 123,
"diff": {
"added": [
"<string>"
],
"modified": [
"<string>"
],
"deleted": [
"<string>"
]
},
"keyCount": 123,
"needsTranslation": true
}Upload source locale file. Computes diff against previous version (added/modified/deleted keys). Marks target locales as “behind” if changes detected. Supports flat or nested JSON with optional context annotations.
curl --request PUT \
--url https://{deployment}.convex.site/v1/projects/{projectId}/source \
--header 'Content-Type: application/json' \
--data '
{
"greeting": "Hello",
"auth": {
"login": "Log in"
}
}
'{
"version": 123,
"diff": {
"added": [
"<string>"
],
"modified": [
"<string>"
],
"deleted": [
"<string>"
]
},
"keyCount": 123,
"needsTranslation": true
}1"proj_abc123"
Raw JSON locale object (flat or nested)
The body is of type object.