5. Deleting Users/Employees via API

Deleting an Employee's profile and their User login credentials from the Go2Clock Instance


Delete (User profile and credentials)

To delete employees and their user login you are going to send a DELETE request to the Go2Clock server.

The web address format you are going to send in is as follows...

Base URL format: app.go2clock.com/api/users/


Header Authentication Parameter: APIKEY=xxxxxxxxxxx  This must match API key value in Go2Clock instance. 

An the param is 'userid' = xxxxxx

This must be a valid employee ID number.

IMPORTANT: This will delete all data from every record for the user, data will no longer be available.

Example cURL command:

curl --location --request DELETE 'https://app.go2clock.com/api/users/' \
--header 'APIKEY: xxxxxxxxxxx' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'userid=10002'

Server Responses for Clock Credentials

The server will respond with an array of key values for each user, below is an example...

{
"status": "success",
"message": "User and records deleted successfully"
}
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us