Enable Key - PUT
Reactivate a revoked API key. The key is restored and its status is set to APPROVED, allowing it to authenticate requests again.
Because the key value is preserved, applications using it will work again without changes.
Enabling a key that is already active is a no-op and returns 200 OK.
Resource URL
Resource Information
| Response Formats | JSON |
| Authentication | Yes (Requires Key) |
| Rate Limited | Yes |
Path Parameters
| Path Parameter | Description | Required |
|---|---|---|
| key | The API key to enable. Must be owned by the authenticated account. | Yes |
Request Parameters
| Request Parameter | Description | Required |
|---|---|---|
| key | The API Key, which is needed to make requests to MapQuest services. | Yes |
Response Object
| Field | Type | Description |
|---|---|---|
| name | string | The display name of the key. |
| key | string | The API key value that was enabled. |
| status | string | The status of the key. Always "APPROVED" after a successful enable. |
Error Responses
Errors are returned as application/problem+json. Refer to the status codes page for more details.
| Status | Description |
|---|---|
| 401 | Missing or invalid consumer identity. The request could not be authenticated. |
| 403 | The authenticated account does not own a key with the provided value. |
| 404 | Consumer not found. No account matches the authenticated identity. |
| 500 | An internal error occurred. Please retry. |
Example Request
PUT https://www.mapquestapi.com/account/v1/keys/IL1deIyHyQA40WpeLeA1bIUXuvTwlGjo/enable?key=KEY
Example Response
json
{
"name": "my-production-app",
"key": "IL1deIyHyQA40WpeLeA1bIUXuvTwlGjo",
"status": "APPROVED"
}