invalidateApiKey

invalidateApiKey

Function
invalidateApiKey(requestOptionsIInvalidateApiKeyOptions): Promise<IInvalidateApiKeyResponse>

Used to invalidate an API key.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
import { invalidateApiKey } from "@esri/arcgis-rest-developer-credentials";

invalidateApiKey({
  itemId: ITEM_ID,
  authentication,
  apiKey: 1, // invalidate the key in slot 1
}).then((response) => {
  // => {success: true}
}).catch(e => {
  // => an exception object
});
Parameters
ParameterType
requestOptions
IInvalidateApiKeyOptions
Returns 
Promise<IInvalidateApiKeyResponse>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.