Skip to content

Commit a46ea5c

Browse files
committed
Add delete docs
1 parent cdea0f0 commit a46ea5c

12 files changed

+40
-0
lines changed

pages/agents/delete-an-agent.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"message": "Successfully deleted role 65: Billy Holiday"}

pages/agents/delete-an-agent.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
### Delete an Agent
2+
3+
Deletes an existing agent. You only need to specify the unique
4+
`id` of the Agent to get the correct details. This will put the agent in the trash but will not permanently delete them.

pages/agents/delete-an-agent.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pprint, requests
2+
3+
headers = {'Authorization': 'token <API KEY>'}
4+
r = requests.delete('https://secure.tutorcruncher.com/api/agents/', headers=headers)
5+
pprint.pprint(r.json())

pages/clients/delete-a-client.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"message": "Successfully deleted role 3: Jamie Hoskins"}

pages/clients/delete-a-client.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
### Delete an Client
2+
3+
Deletes an existing Client. You only need to specify the unique
4+
`id` of the Client to get the correct details. This will put the agent in the trash but will not permanently delete them.

pages/clients/delete-a-client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pprint, requests
2+
3+
headers = {'Authorization': 'token <API KEY>'}
4+
r = requests.delete('https://secure.tutorcruncher.com/api/clients/', headers=headers)
5+
pprint.pprint(r.json())
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"message": "Successfully deleted role 568433: James Higgins"}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
### Delete an Contractor
2+
3+
Deletes an existing Contractor. You only need to specify the unique
4+
`id` of the Contractor to get the correct details. This will put the agent in the trash but will not permanently delete them.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pprint, requests
2+
3+
headers = {'Authorization': 'token <API KEY>'}
4+
r = requests.delete('https://secure.tutorcruncher.com/api/contractors/', headers=headers)
5+
pprint.pprint(r.json())
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"message": "Successfully deleted role 4: Arthur Hoskins"}

0 commit comments

Comments
 (0)