Delete Employee
DELETEhttps://api.uber.com/v1/business/organizations/{organization_id}/employees¶ Use Case
The Delete Employee endpoint allows you to delete an employee of the organization.
¶ Authorization
The Delete Employee endpoint requires an access_token using the client credentials (for 1P use-case)
grant to business.employees scope.
If an application follows third party authentication, the delete employee endpoint requires the client to get authorized using the authorization endpoint
¶ Path Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
organization_id |
string | No | Identifier for your organization. |
¶ Query Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
email |
string | No | Email id of the employee. |
¶ Response Fields
Code: 204 Message: No Content
¶ Example Request
curl -X DELETE -H "Authorization: Bearer <TOKEN>" \
"https://api.uber.com/v1/business/organizations/<organization_id>/employees?email=<email_id>"
¶ Example Response
If the employee was successfully deleted:
Code: 204 Message: No Content
¶ Error Responses
| HTTP Status | Code | Description |
|---|---|---|
| 400 | BAD_REQUEST |
request specific message |
| 404 | ENTITY_NOT_FOUND |
The employee entity does not exist |
| 401 | NOT_AUTHORIZED |
Caller not authorized to make this request |
| 429 | rate_limited |
Rate limit exceeded |
| 500 | INTERNAL_SERVER_ERROR |
We have experienced a problem |