Can update movement information
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user