Path parameters
-
ID of the ApiKey to update
Body Required
-
expiration string(date-time)
If not set then this apikey work as non-expired api-key
PUT
/api/v1/api-key/{id}
curl \
-X PUT https://api.crawlora.com/api/v1/api-key/{id} \
-H "x-api-key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","expiration":"2025-05-04T09:42:00+00:00"}'
Request examples
{
"name": "string",
"expiration": "2025-05-04T09:42:00+00:00"
}
Response examples (200)
{
"is_error": true,
"message": "string",
"correlator_id": "string",
"data": {
"id": "string",
"name": "string",
"values": "string",
"expiration": "string",
"created_at": "string",
"updated_at": "string"
}
}
Response examples (401)
{
"is_error": true,
"message": "string",
"correlator_id": "string",
"data": {}
}
Response examples (404)
{
"is_error": true,
"message": "string",
"correlator_id": "string",
"data": {}
}
Response examples (422)
{
"is_error": true,
"message": "string",
"correlator_id": "string",
"data": {}
}