Skip to main content
PUT
/
v1
/
projects
/
{projectId}
/
source
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
}

Path Parameters

projectId
string
required
Minimum string length: 1
Example:

"proj_abc123"

Body

application/json

Raw JSON locale object

The body is of type object.

Response

200 - application/json

Source file updated successfully

version
number
required
diff
object
required
keyCount
number
required
needsTranslation
boolean
required