invalidateApiKey
FunctioninvalidateApiKey(requestOptions: IInvalidateApiKeyOptions): Promise<IInvalidateApiKeyResponse>
Used to invalidate an API key.
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
Parameter | Type |
---|---|
request | IInvalidateApiKeyOptions |
Returns
Promise<IInvalidateApiKeyResponse>