cURL
curl --request PUT \ --url https://{deployment}.convex.site/v1/projects/{projectId}/source \ --header 'Content-Type: application/json' \ --data ' { "greeting": "Hello" } '
{ "version": 123, "diff": { "added": [ "<string>" ], "modified": [ "<string>" ], "deleted": [ "<string>" ] }, "keyCount": 123, "needsTranslation": true }
Replace the source file. Computes and stores a diff against the previous version.
1
"proj_abc123"
Raw JSON locale object
The body is of type object.
object
Source file updated successfully
Show child attributes