ApiKeys
Update API key
This endpoint lets you update an API key you have access to.
For more details on how API keys work, and how to handle them securely, see the Security and API Key Usage guide.
put/api_keys/{key_id}
Request
- Base URLhttps://api.partoo.co/v2
- AuthAPI key in header x-APIKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
key_idinteger required
Example:3245
Key ID
Request body
Example request
{
"label": "API key name",
"description": "API key for updating business name, and categories.",
"expiration_date": "2022-06-05",
"ip_whitelist": [
"172.16.0.0/12",
"127.0.0.1"
],
"has_restricted_permissions": true,
"permissions": [
"business_edit",
"business_edit_name",
"business_edit_categories"
]
}Response
OK
Example response
{
"id": 3245,
"label": "API key name",
"description": "API key for updating business name, and categories.",
"user_id": "5309c3a237bbc544d8e26737",
"user_name": "Perceval de Galles",
"user_role": "BUSINESS_MANAGER",
"user_type": "user",
"expiration_date": "2022-06-05",
"last_used_at": "2019-08-22 11:46:38.914467+00",
"created_by": "5309c3a237bbc544d8e26737",
"created_by_name": "John Smith",
"created_at": "2018-03-12 11:49:03.399475+00",
"revoked_by": "5309c3a237bbc544d8e26737",
"revoked_by_name": "John Smith",
"revoked_at": "2020-10-20 11:46:38.914467+00",
"ip_whitelist": [
"172.16.0.0/12",
"127.0.0.1"
],
"has_restricted_permissions": true,
"permissions": [
"business_edit",
"business_edit_name",
"business_edit_categories"
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.