You can use Document360’s API to delete a team account associated with your project in the knowledge base portal. This helps simplify and automate team account management.
To delete a team account from the knowledge base portal, follow these steps:
Retrieve the team account ID.
Delete the team account using the API.
Prerequisites for deleting a team account
Before you delete a team account in the knowledge base portal, complete the following authorization steps in Postman.
Authorization
To authorize requests in Postman, make sure your API token is added and the appropriate Base URL is set.
Click Document360 Customer API in the category tree.
In the Postman Workbench, go to the Variables tab.
In the Variables tab, check the Initial and Current values of the
baseUrl
variable.This value should already be set to
https://apihub.document360.io
. If not, update both fields accordingly.Add a new variable for your API token. For example, name it
api_token
.Paste your API token from Document360 into both the Initial value and Current value fields.
Go to the Authorization tab and enter the variable you created in the Value field.
For example, enter
{{api_token}}
if your variable is namedapi_token
.
Once you've completed these steps, you're ready to start using Document360 APIs in Postman.
Delete a team account using Document360’s API
To delete a team account, you need:
Team account ID
Retrieve the team account id
To delete a team account from the project, you need the corresponding team account id. This step helps you retrieve the team account id.
In Postman, under Document360 Customer API, expand v2 > Teams.
Click Get all team accounts, then click Send.
In the response body, locate the
user_id
of the team account you wish to delete.PRO TIP
To locate the desired team account
user_id
, look for the“first_name”
or“last_name”
field on the response to identify the corresponding team account quickly.
Copy the
user_id
and save it for later use.
Delete the team account
After retrieving the team account ID, use this request to delete the team account from the project.
Under v2, expand Teams > {userId}.
Click Delete a user with an ID.
In the Params tab, provide:
user_id
: Paste the team account ID
Click Send.
If successful, the API will return a 200 OK
status and “success”: true
. The team account will now be deleted from the project.