Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

Commit 446bfa6

Browse files
authored
Merge pull request #24 from ThykeAdams/master
Rename Endpoint
2 parents c2cd503 + be4f17d commit 446bfa6

File tree

3 files changed

+3827
-1592
lines changed

3 files changed

+3827
-1592
lines changed

lib/Collections/House.ts

+8
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,12 @@ export class House extends BaseCollection {
108108
const deleteHouse = await rest.delete(`/houses/${this.id}`);
109109
return deleteHouse;
110110
}
111+
async rename(name: String) {
112+
const renamed = await rest.patch(`/houses/${this.id}`, {
113+
data: {
114+
name
115+
}
116+
});
117+
return renamed;
118+
}
111119
}

0 commit comments

Comments
 (0)