Unicat API Reference

Up - API Reference - Home


/api/p/<project gid>/apikeys/delete

Requires JWT.

Deletes an API user (and key) from the project. This is a permanent action.

A deleted user can no longer access the project.

Only the owner of the project can delete API keys.

Request

POST /api/p/<project gid>/apikeys/delete
Authorization: Bearer <JWT>

{
    "user": "<api user gid>",
}

user an API user's gid for this project.

Success response

Authorization: <JWT>

{
    "success": true,
    "result": {},
    "data": {}
}

There is no result info or data in the response because the API user no longer exists.

Error responses

401 Unauthorized - missing or expired JWT
403 Forbidden - not the owner of this project
422 Unprocessable entity - delete failed