Objects
ApiKeyUpdate
Changes to the key. Fields that are not passed stay unchanged, and data_profile is optional. An empty scopes list means scopes by role, empty collection_ids and allowed_cidrs mean no restriction, and expires_at set to null means the key does not expire. A key that is itself restricted to collections cannot remove or widen a restriction to collections (collection_ids).
Fields
data_profilestringNew data profile of the key. A data profile does not apply to the
adminrole, so for an admin key a profile other thanfullreturns400 api_keys.data_profile_not_applicable.scopesarray of ApiKeyScopeScopes of the key. The
systemscope is not issued through the API.collection_idsarray of integerRestricts the key to these collections. An empty list means no restriction. A calling key that is itself restricted to collections sees and changes only keys in its collections (other keys return
404 api_keys.not_found) and can set only a non-empty list of its own collections. An empty list or a collection outside its list returns400 api_keys.invalid_collections. Without this field, the collections of the key stay unchanged.items ≤ 100
allowed_cidrsarray of stringNetworks the key may be used from.
items ≤ 50
expires_atstring (date-time) | nullExpiration time (in the future).
nullmeans the key does not expire.