The Subscriptions API provides operations to manage email subscription settings for Okta administrator notifications.
okta.roles.read
Lists all subscriptions available to a specified Role
required | RoleType (string) or roleId (string) A reference to an existing role. Standard roles require a |
Success
Forbidden
Not Found
Too Many Requests
[- {
- "channels": [
- "string"
], - "notificationType": "AD_AGENT",
- "status": "subscribed",
- "_links": {
- "self": {
- "hints": {
- "allow": [
- "DELETE"
]
}, - "href": "string",
- "name": "string",
- "templated": true,
- "type": "string"
}
}
}
]
okta.roles.read
Retrieves a subscription by notificationType
for a specified Role
required | RoleType (string) or roleId (string) A reference to an existing role. Standard roles require a | ||||||||||||||||||||||||||||
notificationType required | string (NotificationType) The type of notification
|
Success
Forbidden
Not Found
Too Many Requests
{- "channels": [
- "string"
], - "notificationType": "AD_AGENT",
- "status": "subscribed",
- "_links": {
- "self": {
- "hints": {
- "allow": [
- "DELETE"
]
}, - "href": "string",
- "name": "string",
- "templated": true,
- "type": "string"
}
}
}
okta.roles.manage
Subscribes a Role to a specified notification type. Changes to Role subscriptions override the subscription status of any individual users with the Role.
required | RoleType (string) or roleId (string) A reference to an existing role. Standard roles require a | ||||||||||||||||||||||||||||
notificationType required | string (NotificationType) The type of notification
|
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}
okta.roles.manage
Unsubscribes a Role from a specified notification type. Changes to Role subscriptions override the subscription status of any individual users with the Role.
required | RoleType (string) or roleId (string) A reference to an existing role. Standard roles require a | ||||||||||||||||||||||||||||
notificationType required | string (NotificationType) The type of notification
|
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}
okta.users.read
Lists all subscriptions available to a specified user. Returns an AccessDeniedException
message if requests are made for another user.
Success
Forbidden
Not Found
Too Many Requests
[- {
- "channels": [
- "string"
], - "notificationType": "AD_AGENT",
- "status": "subscribed",
- "_links": {
- "self": {
- "hints": {
- "allow": [
- "DELETE"
]
}, - "href": "string",
- "name": "string",
- "templated": true,
- "type": "string"
}
}
}
]
okta.users.read
Retrieves a subscription by notificationType
for a specified user. Returns an AccessDeniedException
message if requests are made for another user.
Success
Forbidden
Not Found
Too Many Requests
{- "channels": [
- "string"
], - "notificationType": "AD_AGENT",
- "status": "subscribed",
- "_links": {
- "self": {
- "hints": {
- "allow": [
- "DELETE"
]
}, - "href": "string",
- "name": "string",
- "templated": true,
- "type": "string"
}
}
}
okta.users.manage
Subscribes the current user to a specified notification type. Returns an AccessDeniedException
message if requests are made for another user.
userId required | string The unique ID of the user | ||||||||||||||||||||||||||||
notificationType required | string (NotificationType) The type of notification
|
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}
okta.users.manage
Unsubscribes the current user from a specified notification type. Returns an AccessDeniedException
message if requests are made for another user.
userId required | string The unique ID of the user | ||||||||||||||||||||||||||||
notificationType required | string (NotificationType) The type of notification
|
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}