# Manage API Token

{% hint style="danger" %}

## Project Management API is disabled from Feb 1st, 2023 onwards, so any request made to this en point will fail

{% endhint %}

This API allows you to disable / enable / delete API tokens

## Manage API Token

<mark style="color:green;">`POST`</mark> `https://pickyassist.com/app/api/v2/pm/manage-api-token`

This API allows you to disable / enable / delete API tokens

#### Request Body

| Name        | Type   | Description                                                                               |
| ----------- | ------ | ----------------------------------------------------------------------------------------- |
| token       | string | Your Master API Token for authentication                                                  |
| project\_id | number | Project Id in which the API needs to be generated                                         |
| api\_token  | string | API token to be disabled / enabled / deleted                                              |
| action      | number | <p>Pass what action needs to be taken <br><br>1 = Disable<br>2 = Enable<br>3 = Delete</p> |

{% tabs %}
{% tab title="200 " %}

```
{
   "status":100,
   "message":"Success"
}
```

{% endtab %}
{% endtabs %}

## Response Variables&#x20;

| Variable | Type    | Description                                                                                                                                                         |
| -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| status   | numeric | <p>Status of the Request </p><p></p><p>100 = Sucess</p><p></p><p>Refer <a href="../references/status-and-error-codes">Error Codes</a> for complete Status Codes</p> |

## Sample Request Body JSON

```javascript
{
   "token":"erererewrwercvcv",
   "project_id":7715,
   "api_token":"erewrercxvcvcxvcxv",
   "action":1
}
```

## Sample Response

```javascript
{
   "status":100,
   "message":"Success"
}
```
