curl --request PATCH \
--url https://api.dittowords.com/v2/projects/{projectId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "My Renamed Project"
}
'{
"id": "my-renamed-project",
"name": "My Renamed Project",
"url": "https://app.dittowords.com/projects-beta/6a1f0c2e9b3d4e5f6a7b8c9d",
"baseId": "my-base",
"githubBranch": null,
"pullRequest": null,
"branchImportStatus": null
}{
"message": "Must provide at least one field to update"
}{
"message": "Bases are not enabled for this workspace"
}{
"message": "Could not find project: my-project"
}{
"message": "Already exists in workspace"
}Update a project
Updates a project’s name, Developer ID, and/or connected base.
The project is identified by its current Developer ID in the URL path. Only provided fields are modified.
Moving a project off its current base (to a different base, or to none with baseId: null) unlinks all of its text items from their base text items. Each text item still sharing its base text item’s Developer ID gets a new one derived from it, e.g. checkout-cta becomes checkout-cta-1; text items with a unique Developer ID keep it. Update any code that references the changed Developer IDs through this project. Moving the project back doesn’t restore them.
curl --request PATCH \
--url https://api.dittowords.com/v2/projects/{projectId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "My Renamed Project"
}
'{
"id": "my-renamed-project",
"name": "My Renamed Project",
"url": "https://app.dittowords.com/projects-beta/6a1f0c2e9b3d4e5f6a7b8c9d",
"baseId": "my-base",
"githubBranch": null,
"pullRequest": null,
"branchImportStatus": null
}{
"message": "Must provide at least one field to update"
}{
"message": "Bases are not enabled for this workspace"
}{
"message": "Could not find project: my-project"
}{
"message": "Already exists in workspace"
}Path Parameters
Body
The Developer ID of the base to connect the project to, or provide null to disconnect from its current base. Moving a project off its current base unlinks its text items from their base text items, and each text item still sharing its base text item's Developer ID gets a new one derived from it (e.g. checkout-cta becomes checkout-cta-1).
1Response
Returns the developer ID and name of the updated project, as well as the developer ID of the connected base (or null).