All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
activateEventHook | POST /api/v1/eventHooks/{eventHookId}/lifecycle/activate | Activate an Event Hook |
createEventHook | POST /api/v1/eventHooks | Create an Event Hook |
deactivateEventHook | POST /api/v1/eventHooks/{eventHookId}/lifecycle/deactivate | Deactivate an Event Hook |
deleteEventHook | DELETE /api/v1/eventHooks/{eventHookId} | Delete an Event Hook |
getEventHook | GET /api/v1/eventHooks/{eventHookId} | Retrieve an Event Hook |
listEventHooks | GET /api/v1/eventHooks | List all Event Hooks |
updateEventHook | PUT /api/v1/eventHooks/{eventHookId} | Replace an Event Hook |
verifyEventHook | POST /api/v1/eventHooks/{eventHookId}/lifecycle/verify | Verify an Event Hook |
EventHook activateEventHook()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.EventHookApi(configuration);
let body:okta.EventHookApiActivateEventHookRequest = {
// string
eventHookId: "eventHookId_example",
};
apiInstance.activateEventHook(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
eventHookId | [string] | defaults to undefined |
EventHook
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventHook createEventHook(eventHook)
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.EventHookApi(configuration);
let body:okta.EventHookApiCreateEventHookRequest = {
// EventHook
eventHook: {
channel: {
config: {
authScheme: {
key: "key_example",
type: "HEADER",
value: "value_example",
},
headers: [
{
key: "key_example",
value: "value_example",
},
],
uri: "uri_example",
},
type: "HTTP",
version: "version_example",
},
createdBy: "createdBy_example",
events: {},
name: "name_example",
status: "ACTIVE",
verificationStatus: "UNVERIFIED",
},
};
apiInstance.createEventHook(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
eventHook | EventHook |
EventHook
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventHook deactivateEventHook()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.EventHookApi(configuration);
let body:okta.EventHookApiDeactivateEventHookRequest = {
// string
eventHookId: "eventHookId_example",
};
apiInstance.deactivateEventHook(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
eventHookId | [string] | defaults to undefined |
EventHook
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deleteEventHook()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.EventHookApi(configuration);
let body:okta.EventHookApiDeleteEventHookRequest = {
// string
eventHookId: "eventHookId_example",
};
apiInstance.deleteEventHook(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
eventHookId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventHook getEventHook()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.EventHookApi(configuration);
let body:okta.EventHookApiGetEventHookRequest = {
// string
eventHookId: "eventHookId_example",
};
apiInstance.getEventHook(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
eventHookId | [string] | defaults to undefined |
EventHook
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listEventHooks()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.EventHookApi(configuration);
let body:any = {};
apiInstance.listEventHooks(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
This endpoint does not need any parameter.
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventHook updateEventHook(eventHook)
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.EventHookApi(configuration);
let body:okta.EventHookApiUpdateEventHookRequest = {
// string
eventHookId: "eventHookId_example",
// EventHook
eventHook: {
channel: {
config: {
authScheme: {
key: "key_example",
type: "HEADER",
value: "value_example",
},
headers: [
{
key: "key_example",
value: "value_example",
},
],
uri: "uri_example",
},
type: "HTTP",
version: "version_example",
},
createdBy: "createdBy_example",
events: {},
name: "name_example",
status: "ACTIVE",
verificationStatus: "UNVERIFIED",
},
};
apiInstance.updateEventHook(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
eventHook | EventHook | ||
eventHookId | [string] | defaults to undefined |
EventHook
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EventHook verifyEventHook()
Success
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.EventHookApi(configuration);
let body:okta.EventHookApiVerifyEventHookRequest = {
// string
eventHookId: "eventHookId_example",
};
apiInstance.verifyEventHook(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
eventHookId | [string] | defaults to undefined |
EventHook
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]