Can update movement information

This commit is contained in:
2025-04-22 11:17:39 +02:00
parent 5db816ca9a
commit 68dfbfff2b
3 changed files with 31 additions and 3 deletions

View File

@ -60,4 +60,17 @@ export class MovementApi {
})
).data;
}
/**
* Update a movement information
*/
static async Update(movement: Movement): Promise<Movement> {
return (
await APIClient.exec({
uri: `/movement/${movement.id}`,
method: "PUT",
jsonData: movement,
})
).data;
}
}