Skip to content

Commit 0222c2e

Browse files
addressed additional typos
1 parent b940ad3 commit 0222c2e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/resources/projects/settings/project-apis.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ curl -X POST \
358358
This endpoint allows you to overwrite existing files in your FlutterFlow project by submitting updated YAML content.
359359

360360
#### Endpoint
361-
`POST /updateProjectYaml`
361+
`POST /updateProjectByYaml`
362362

363363
#### Request Body
364364
```jsx
@@ -413,7 +413,7 @@ This example updates the `ad-mob` file and adds/updates app state variables.
413413

414414
```jsx
415415
curl -X POST \
416-
'https://api.flutterflow.io/v2/updateProjectYaml' \
416+
'https://api.flutterflow.io/v2/updateProjectByYaml' \
417417
-H 'Authorization: Bearer YOUR_API_TOKEN' \
418418
-H 'Content-Type: application/json' \
419419
-d '{
@@ -462,7 +462,7 @@ First, we use the `/listPartitionedFileNames` endpoint to check if the `app-stat
462462
</div>
463463
<p></p>
464464

465-
Next, we open the `app-state.yaml` file and update the `enableDarkMode` variable by setting its `persisted` value to `true`. We then convert the updated YAML into a properly escaped single line string and validate it using the `/validateProjectYaml` endpoint. If validation succeeds, we send the final update using the `/updateProjectYaml` endpoint.
465+
Next, we open the `app-state.yaml` file and update the `enableDarkMode` variable by setting its `persisted` value to `true`. We then convert the updated YAML into a properly escaped single line string and validate it using the `/validateProjectYaml` endpoint. If validation succeeds, we send the final update using the `/updateProjectByYaml` endpoint.
466466

467467

468468
<div style={{
@@ -535,7 +535,7 @@ When YAML validation fails, you'll receive detailed error information:
535535
-d '{"projectId": "project-id", "fileKey": "ad-mob", "fileContent": "showTestAds: false"}'
536536
537537
# 2. If validation passes, apply the changes
538-
curl -X POST 'https://api.flutterflow.io/v2/updateProjectYaml' \
538+
curl -X POST 'https://api.flutterflow.io/v2/updateProjectByYaml' \
539539
-H 'Authorization: Bearer YOUR_API_KEY' \
540540
-H 'Content-Type: application/json' \
541541
-d '{"projectId": "project-id", "fileKeyToContent": {"ad-mob": "showTestAds: false"}}'

0 commit comments

Comments
 (0)