Skip to main content

Update a Subscription

PUT 

https://sailpoint.api.identitynow.com/beta/trigger-subscriptions/:id

This API updates a trigger subscription in IdentityNow, using a full object representation. In other words, the existing Subscription is completely replaced. The following fields are immutable:

  • id

  • triggerId

Attempts to modify these fields result in 400.

Request

Path Parameters

    id stringrequired

    Subscription ID

    Example: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde

Bodyrequired

    namestring

    Subscription name.

    Example: Access request subscription
    descriptionstring

    Subscription description.

    Example: Access requested to site xyz
    typestring

    Subscription type. NOTE If type is EVENTBRIDGE, then eventBridgeConfig is required. If type is HTTP, then httpConfig is required.

    Possible values: [HTTP, EVENTBRIDGE, INLINE, SCRIPT, WORKFLOW]

    Example: HTTP
    responseDeadlinestring

    Deadline for completing REQUEST_RESPONSE trigger invocation, represented in ISO-8601 duration format.

    Default value: PT1H
    Example: PT1H
    httpConfig object
    urlstringrequired

    URL of the external/custom integration.

    Example: https://www.example.com
    httpDispatchModestringrequired

    HTTP response modes, i.e. SYNC, ASYNC, or DYNAMIC.

    Possible values: [SYNC, ASYNC, DYNAMIC]

    Example: SYNC
    httpAuthenticationTypestring

    Defines the HTTP Authentication type. Additional values may be added in the future.

    If NO_AUTH is selected, no extra information will be in HttpConfig.

    If BASIC_AUTH is selected, HttpConfig will include BasicAuthConfig with Username and Password as strings.

    If BEARER_TOKEN is selected, HttpConfig will include BearerTokenAuthConfig with Token as string.

    Possible values: [NO_AUTH, BASIC_AUTH, BEARER_TOKEN]

    Default value: NO_AUTH
    Example: BASIC_AUTH
    basicAuthConfig objectnullable

    Config required if BASIC_AUTH is used.

    userNamestring

    The username to authenticate.

    Example: user@example.com
    passwordstringnullable

    The password to authenticate. On response, this field is set to null as to not return secrets.

    Example: null
    bearerTokenAuthConfig objectnullable

    Config required if BEARER_TOKEN authentication is used. On response, this field is set to null as to not return secrets.

    bearerTokenstringnullable

    Bearer token

    Example: null
    eventBridgeConfig object
    awsAccountstringrequired

    AWS Account Number (12-digit number) that has the EventBridge Partner Event Source Resource.

    Example: 123456789012
    awsRegionstringrequired

    AWS Region that has the EventBridge Partner Event Source Resource. See https://docs.aws.amazon.com/general/latest/gr/rande.html for a full list of available values.

    Example: us-west-1
    enabledboolean

    Whether subscription should receive real-time trigger invocations or not.

    Test trigger invocations are always enabled regardless of this option.

    Default value: true
    Example: true
    filterstring

    JSONPath filter to conditionally invoke trigger when expression evaluates to true.

    Example: $[?($.identityId == "201327fda1c44704ac01181e963d463c")]

Responses

Updated subscription.

Schema
    idstringrequired

    Subscription ID.

    Example: 0f11f2a4-7c94-4bf3-a2bd-742580fe3bde
    namestringrequired

    Subscription name.

    Example: Access request subscription
    descriptionstring

    Subscription description.

    Example: Access requested to site xyz
    triggerIdstringrequired

    ID of trigger subscribed to.

    Example: idn:access-request-post-approval
    triggerNamestringrequired

    Trigger name of trigger subscribed to.

    Example: Access Requested
    typestringrequired

    Subscription type. NOTE If type is EVENTBRIDGE, then eventBridgeConfig is required. If type is HTTP, then httpConfig is required.

    Possible values: [HTTP, EVENTBRIDGE, INLINE, SCRIPT, WORKFLOW]

    Example: HTTP
    responseDeadlinestring

    Deadline for completing REQUEST_RESPONSE trigger invocation, represented in ISO-8601 duration format.

    Default value: PT1H
    Example: PT1H
    httpConfig object
    urlstringrequired

    URL of the external/custom integration.

    Example: https://www.example.com
    httpDispatchModestringrequired

    HTTP response modes, i.e. SYNC, ASYNC, or DYNAMIC.

    Possible values: [SYNC, ASYNC, DYNAMIC]

    Example: SYNC
    httpAuthenticationTypestring

    Defines the HTTP Authentication type. Additional values may be added in the future.

    If NO_AUTH is selected, no extra information will be in HttpConfig.

    If BASIC_AUTH is selected, HttpConfig will include BasicAuthConfig with Username and Password as strings.

    If BEARER_TOKEN is selected, HttpConfig will include BearerTokenAuthConfig with Token as string.

    Possible values: [NO_AUTH, BASIC_AUTH, BEARER_TOKEN]

    Default value: NO_AUTH
    Example: BASIC_AUTH
    basicAuthConfig objectnullable

    Config required if BASIC_AUTH is used.

    userNamestring

    The username to authenticate.

    Example: user@example.com
    passwordstringnullable

    The password to authenticate. On response, this field is set to null as to not return secrets.

    Example: null
    bearerTokenAuthConfig objectnullable

    Config required if BEARER_TOKEN authentication is used. On response, this field is set to null as to not return secrets.

    bearerTokenstringnullable

    Bearer token

    Example: null
    eventBridgeConfig object
    awsAccountstringrequired

    AWS Account Number (12-digit number) that has the EventBridge Partner Event Source Resource.

    Example: 123456789012
    awsRegionstringrequired

    AWS Region that has the EventBridge Partner Event Source Resource. See https://docs.aws.amazon.com/general/latest/gr/rande.html for a full list of available values.

    Example: us-west-1
    enabledbooleanrequired

    Whether subscription should receive real-time trigger invocations or not. Test trigger invocations are always enabled regardless of this option.

    Default value: true
    Example: true
    filterstring

    JSONPath filter to conditionally invoke trigger when expression evaluates to true.

    Example: $[?($.identityId == "201327fda1c44704ac01181e963d463c")]

Authorization: oauth2

type: Personal Access Token
scopes: sp:trigger-service-subscriptions:manage

Request Collapse all
Base URL
https://sailpoint.api.identitynow.com/beta
Auth
Parameters
— pathrequired
Body required
{
  "name": "Access request subscription",
  "description": "Access requested to site xyz",
  "type": "HTTP",
  "responseDeadline": "PT1H",
  "httpConfig": {
    "url": "https://www.example.com",
    "httpDispatchMode": "SYNC",
    "httpAuthenticationType": "BASIC_AUTH",
    "basicAuthConfig": {
      "userName": "user@example.com",
      "password": null
    },
    "bearerTokenAuthConfig": {
      "bearerToken": null
    }
  },
  "eventBridgeConfig": {
    "awsAccount": "123456789012",
    "awsRegion": "us-west-1"
  },
  "enabled": true,
  "filter": "$[?($.identityId == \"201327fda1c44704ac01181e963d463c\")]"
}
ResponseClear

Click the Send API Request button above and see the response here!