new module:api/WebhooksApi(apiClient)
Constructs a new WebhooksApi.
Parameters:
| Name | Type | Description |
|---|---|---|
apiClient |
module:ApiClient | Optional API client implementation to use, default to module:ApiClient#instance if unspecified. |
- Source:
Members
(static, readonly) RegionEnum :String
Allowed values for the region property.
Type:
- String
Properties:
| Name | Type | Description |
|---|---|---|
US |
String | value: "US" |
EMEA |
String | value: "EMEA" |
EU |
String | value: "EU" |
- Source:
(static, readonly) StatusEnum :String
Allowed values for the export.StatusEnum property.
Type:
- String
Properties:
| Name | Type | Description |
|---|---|---|
Active |
String | value: "Active" |
Inactive |
String | value: "Inactive" |
- Source:
(static, readonly) WebhookEventEnum :String
Allowed values for the export.WebhookEventEnum property.
Type:
- String
Properties:
| Name | Type | Description |
|---|---|---|
VersionAdded |
String | value: "VersionAdded" |
VersionModified |
String | value: "VersionModified" |
VersionDeleted |
String | value: "VersionDeleted" |
VersionMoved |
String | value: "VersionMoved" |
VersionCopied |
String | value: "VersionCopied" |
FolderAdded |
String | value: "FolderAdded" |
FolderModified |
String | value: "FolderModified" |
FolderDeleted |
String | value: "FolderDeleted" |
FolderMoved |
String | value: "FolderMoved" |
FolderCopied |
String | value: "FolderCopied" |
ExtractionFinished |
String | value: "ExtractionFinished" |
ExtractionUpdated |
String | value: "ExtractionUpdated" |
ModelSync |
String | value: "ModelSync" |
ModelPublish |
String | value: "ModelPublish" |
ItemClone |
String | value: "ItemClone" |
ItemCreate |
String | value: "ItemCreate" |
ItemLock |
String | value: "ItemLock" |
ItemRelease |
String | value: "ItemRelease" |
ItemUnlock |
String | value: "ItemUnlock" |
ItemUpdate |
String | value: "ItemUpdate" |
WorkflowTransition |
String | value: "WorkflowTransition" |
- Source:
(static, readonly) WebhooksSystemEnum :String
Allowed values for the export.DerivativeWebhookEvent property.
Type:
- String
Properties:
| Name | Type | Description |
|---|---|---|
derivative |
String | value: "derivative" |
data |
String | value: "data" |
c4r |
String | value: "adsk.c4r" |
- Source:
Methods
CreateSystemEventHook(webhooksSystem, eventType, callbackUrl, scope, opts, oauth2client, credentials)
Add new webhook to receive the notification on a specified event.
Parameters:
| Name | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
webhooksSystem |
WebhooksSystemEnum | A system for example: data, for Data Management |
|||||||||||||||||||||
eventType |
WebhookEventEnum | The webhook event type to create hool for. |
|||||||||||||||||||||
callbackUrl |
String | Callback URL registered for the webhook. |
|||||||||||||||||||||
scope |
Object | An object that represents the extent to where the event is monitored. |
|||||||||||||||||||||
opts |
Object | Optional parameters Properties
|
|||||||||||||||||||||
oauth2client |
Object | oauth2client for the call |
|||||||||||||||||||||
credentials |
Object | credentials for the call |
- Source:
CreateSystemHook(webhooksSystem, callbackUrl, scope, opts, oauth2client, credentials)
Add new webhooks to receive the notification on all the events.
Parameters:
| Name | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
webhooksSystem |
WebhooksSystemEnum | A system for example: data, for Data Management |
|||||||||||||||||||||
callbackUrl |
String | Callback URL registered for the webhook. |
|||||||||||||||||||||
scope |
Object | An object that represents the extent to where the event is monitored. |
|||||||||||||||||||||
opts |
Object | Optional parameters Properties
|
|||||||||||||||||||||
oauth2client |
Object | oauth2client for the call |
|||||||||||||||||||||
credentials |
Object | credentials for the call |
- Source:
DeleteHook(webhooksSystem, eventType, hookId, opts, oauth2client, credentials)
Deletes the webhook with the given GUID for the given model derivative event.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
webhooksSystem |
WebhooksSystemEnum | A system for example: data, for Data Management |
||||||
eventType |
WebhookEventEnum | The webhook event type to delete hook for. |
||||||
hookId |
String | The GUID of the hook to delete. |
||||||
opts |
Object | Optional parameters Properties
|
||||||
oauth2client |
Object | oauth2client for the call |
||||||
credentials |
Object | credentials for the call |
- Source:
GetHook(webhooksSystem, eventType, hookId, opts, oauth2client, credentials)
Returns hooks for model derivate events.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
webhooksSystem |
WebhooksSystemEnum | A system for example: data, for Data Management |
||||||
eventType |
WebhookEventEnum | The webhook event type to get hooks for. |
||||||
hookId |
String | The GUID of the hook to delete. |
||||||
opts |
Object | Optional parameters Properties
|
||||||
oauth2client |
Object | oauth2client for the call |
||||||
credentials |
Object | credentials for the call |
- Source:
GetHooks(opts, oauth2client, credentials)
Returns hooks.
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | Optional parameters Properties
|
|||||||||||||||
oauth2client |
Object | oauth2client for the call |
|||||||||||||||
credentials |
Object | credentials for the call |
- Source:
GetSystemEventsHooks(webhooksSystem, eventType, opts, oauth2client, credentials)
Returns hooks for systems' events.
Parameters:
| Name | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
webhooksSystem |
WebhooksSystemEnum | A system for example: data, for Data Management |
|||||||||||||||||||||
eventType |
WebhookEventEnum | The webhook event type to get hooks for. |
|||||||||||||||||||||
opts |
Object | Optional parameters Properties
|
|||||||||||||||||||||
oauth2client |
Object | oauth2client for the call |
|||||||||||||||||||||
credentials |
Object | credentials for the call |
- Source:
GetSystemHooks(webhooksSystem, opts, oauth2client, credentials)
Returns hooks for systems.
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
webhooksSystem |
WebhooksSystemEnum | A system for example: data, for Data Management |
|||||||||||||||
opts |
Object | Optional parameters Properties
|
|||||||||||||||
oauth2client |
Object | oauth2client for the call |
|||||||||||||||
credentials |
Object | credentials for the call |
- Source:
UpdateSystemEventHook(webhooksSystem, eventType, hookId, payload, opts, oauth2client, credentials)
Partially update a webhook based on its webhook ID. The only fields that may be updated are: status, filter, and hookAttribute.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
webhooksSystem |
WebhooksSystemEnum | A system for example: data, for Data Management |
||||||
eventType |
WebhookEventEnum | The webhook event type to create hool for. |
||||||
hookId |
String | The GUID of the hook to modify. |
||||||
payload |
String | An object that represents the modifications. |
||||||
opts |
Object | Optional parameters Properties
|
||||||
oauth2client |
Object | oauth2client for the call |
||||||
credentials |
Object | credentials for the call |
- Source: