Name:
interface
Value:
Amplify has re-imagined the way frontend developers build fullstack applications. Develop and deploy without the hassle.

Page updated Apr 29, 2024

Update data

Amplify Flutter v1 is deprecated as of April 30th, 2025. No new features or bug fixes will be added. Dependencies may become outdated and potentially introduce compatibility issues.

Please use the latest version (v2) of Amplify Flutter to get started.

If you are currently using v1, follow these instructions to upgrade to v2.

PUT requests

To update an item via the API endpoint:

Future<void> updateTodo() async {
try {
final restOperation = Amplify.API.put(
'todo/1',
body: HttpPayload.json({'name': 'Mow the lawn'}),
);
final response = await restOperation.response;
print('PUT call succeeded');
print(response.decodeBody());
} on ApiException catch (e) {
print('PUT call failed: $e');
}
}