UpdateIntegration
/api/v1/integrations/{integration}Update an integration, such as its credentials or what it syncs.
Example request
curl -X PATCH \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ -H "Content-Type: application/json" \ -d '{ "displayName": "string", "createGroupForNewTeams": false }' \ "https://us.oblique.security/api/v1/integrations/{integration}?updateMask=displayName,createGroupForNewTeams"Set OBLIQUE_API_KEY to your API key.
curl -X PATCH \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ -H "Content-Type: application/json" \ -d '{ "displayName": "string", "createGroupForNewTeams": false }' \ "https://eu.oblique.security/api/v1/integrations/{integration}?updateMask=displayName,createGroupForNewTeams"Set OBLIQUE_API_KEY to your API key.
Path parameters
integration.namestringrequiredAssigned by Oblique.
Query parameters
updateMaskstring (field-mask)The list of fields to update.
Note that integration specific field do not support sub-fields. For example, a mask can provide “linear” but not “linear.foo”
allowMissingbooleanIf set to true, and the integration is not found, a new integration will be created with the given name. If created in this way, update_mask is ignored.
Request body
managementManagementHow this integration is managed. Set automatically by the server based on the calling client. Omitted from responses when the integration is manually managed (the default).
managerstringHow the resource is managed. Set automatically by the server based on the caller: Terraform clients produce TERRAFORM; for all other clients the management field is left unset on the response.
repoUristringURI of the VCS repository that holds the Terraform configuration for this resource. Populated by the Oblique Terraform provider.
repoDirstringOptionally, the subdirectory within
repo_urithat holds the Terraform configuration for this resource. Populated by the Oblique Terraform provider.
displayNamestringA human readable name of the integration. For example “Okta Test”.
createTimestring (date-time)read-onlyCreate and update timestamps.
updateTimestring (date-time)read-onlydeleteTimestring (date-time)read-onlyThe time when the integration was deleted.
One of
oktaOktaapiTokenstringrequiredThe API token to use when making calls to Okta. Required when the integration is created.
domainBaseUristringrequiredFull base URL of the Okta domain, including the schema. For example: https://dev-45752433-admin.okta.com
displayNamestringWill be removed in the future in favor of top level display_name.
organizationIdstringread-onlyThe tenant ID of the Okta organization. This is detected on first creation of the integration and is not editable.
ignoreUsersIgnoreUsersattributesUserAttribute[]requiredIf provided, the integration will ignore users that have any of the given attributes set to this value. If multiple attributes are provided, the user will be ignored if any of their attributes match these rules. Custom attributes are supported.
keystringrequiredThe key of the attribute. For example “department”.
valuestringrequiredThe value of the attribute. For example “Engineering”.
googleGoogledomainstringrequiredThe domain to query for groups and memberships.
missingReportsScopesbooleanread-onlyWhether the connection is missing the Google OAuth scopes required to sync sign-in reports from the Google Workspace audit logs.
connectedAccountEmailstringread-onlyThe email of the Workspace administrator who authorized the connection. Empty for a connection that authenticates as Oblique’s service account through domain-wide delegation rather than through OAuth 2.0.
manageGroupsbooleanread-onlyWhether Oblique can manage the Workspace’s groups, creating them and changing their membership, which a resource in push mode needs. False when the administrator who authorized the connection approved reading the Workspace but not managing its groups.
slackSlackteamIdstringrequiredThe team ID that has been configured for notifications.
teamNamestringread-onlyThe human readable name of the team that has been configured for notifications.
channelIdsstring[]Channels to send notifications to.
dmDisabledbooleanWhether DM notifications are disabled. This is false by default.
domainBaseUristringread-onlyThe domain base URI of the Slack instance, including the schema. This is detected on creation and is not editable. For example: https://myworkspace.slack.com
allowApprovalWorkflowbooleanWhether reviewers can approve requests directly from the Slack notification. This is true by default.
githubGitHuborgstringrequiredThe GitHub organization name to sync members and teams from. May be changed by the user on the GitHub side.
orgIdstringread-onlyThe immutable GitHub organization ID.
installationIdstringread-onlyThe GitHub App installation ID for this organization. Set by the installation callback.
baseUristringBase URI of the GitHub instance, including the schema. Defaults to “https://github.com”. Set this to target GitHub Enterprise Cloud.
displayNamestringread-onlyThe human readable display name of the GitHub organization, synced from GitHub. Empty if the organization has not set one.
cloudflareCloudflareaccountIdstringread-onlyThe ID of the Cloudflare account that members and policies are synced from. Determined by the account the admin grants access to when connecting, and not editable afterwards.
accountNamestringread-onlyThe human readable name of the Cloudflare account, read from Cloudflare when the integration is connected. Empty if Cloudflare reports the account without a name.
notionNotionworkspaceIdstringread-onlyThe ID of the Notion workspace that members are synced from. Determined by the workspace the admin grants access to when connecting, and not editable afterwards.
workspaceNamestringread-onlyThe human readable name of the Notion workspace, read from Notion when the integration is connected. Empty if Notion reports the workspace without a name.
linearLinearworkspaceIdstringread-onlyThe ID of the Linear workspace that members and teams are synced from. Determined by the workspace the admin grants access to when connecting, and not editable afterwards.
workspaceNamestringread-onlyThe human readable name of the Linear workspace, read from Linear when the integration is connected.
uriKeystringread-onlyThe URL key of the Linear workspace, used to build links into Linear. For example “oblique” for https://linear.app/oblique.
anthropicAnthropicapiKeystringrequiredThe Admin API key used to read the organization’s members and workspaces. Required when the integration is created, and never returned by the API. Provide it again to rotate the key.
organizationIdstringread-onlyThe ID of the Anthropic organization that members and workspaces are synced from. Determined by the organization the API key belongs to, and not editable afterwards.
organizationNamestringread-onlyThe human readable name of the Anthropic organization, read from Anthropic when the integration is connected.
posthogPostHogorganizationIdstringread-onlyThe ID of the PostHog organization that members and projects are synced from. Determined by the organization the admin grants access to when connecting, and not editable afterwards.
organizationNamestringread-onlyThe human readable name of the PostHog organization, read from PostHog when the integration is connected.
baseUristringread-onlyThe base URI of the PostHog region the organization lives in. Either “https://us.posthog.com” or “https://eu.posthog.com”.
createGroupForNewTeamsbooleanIf true, the integration will create a group for each new team.
userCountinteger (int32)read-onlyThe number of users that the system contains.
resourceCountinteger (int32)read-onlyThe number of resources that the system manages.
resourcePushCountinteger (int32)read-onlyThe number of resources that have been pushed to the integration.
resourcePullCountinteger (int32)read-onlyThe number of resources that have been pulled from the integration.
supportsPushbooleanread-onlyWhether the integration can push to at least one of the objects it reports. Some of its write capabilities may still be unavailable. Determined by the access the integration was granted, and re-evaluated on every sync.
needsReauthbooleanread-onlyWhether the integration is missing access that Oblique asks for, which is granted by reconnecting it. Re-evaluated on every sync.
Response
200IntegrationIntegrations connect Oblique with external systems in your organization. Oblique can both pull information from and push access decisions back to integrations.
namestringAssigned by Oblique.
managementManagementHow this integration is managed. Set automatically by the server based on the calling client. Omitted from responses when the integration is manually managed (the default).
managerstringHow the resource is managed. Set automatically by the server based on the caller: Terraform clients produce TERRAFORM; for all other clients the management field is left unset on the response.
repoUristringURI of the VCS repository that holds the Terraform configuration for this resource. Populated by the Oblique Terraform provider.
repoDirstringOptionally, the subdirectory within
repo_urithat holds the Terraform configuration for this resource. Populated by the Oblique Terraform provider.
displayNamestringA human readable name of the integration. For example “Okta Test”.
createTimestring (date-time)read-onlyCreate and update timestamps.
updateTimestring (date-time)read-onlydeleteTimestring (date-time)read-onlyThe time when the integration was deleted.
One of
oktaOktaapiTokenstringrequiredThe API token to use when making calls to Okta. Required when the integration is created.
domainBaseUristringrequiredFull base URL of the Okta domain, including the schema. For example: https://dev-45752433-admin.okta.com
displayNamestringWill be removed in the future in favor of top level display_name.
organizationIdstringread-onlyThe tenant ID of the Okta organization. This is detected on first creation of the integration and is not editable.
ignoreUsersIgnoreUsersattributesUserAttribute[]requiredIf provided, the integration will ignore users that have any of the given attributes set to this value. If multiple attributes are provided, the user will be ignored if any of their attributes match these rules. Custom attributes are supported.
keystringrequiredThe key of the attribute. For example “department”.
valuestringrequiredThe value of the attribute. For example “Engineering”.
googleGoogledomainstringrequiredThe domain to query for groups and memberships.
missingReportsScopesbooleanread-onlyWhether the connection is missing the Google OAuth scopes required to sync sign-in reports from the Google Workspace audit logs.
connectedAccountEmailstringread-onlyThe email of the Workspace administrator who authorized the connection. Empty for a connection that authenticates as Oblique’s service account through domain-wide delegation rather than through OAuth 2.0.
manageGroupsbooleanread-onlyWhether Oblique can manage the Workspace’s groups, creating them and changing their membership, which a resource in push mode needs. False when the administrator who authorized the connection approved reading the Workspace but not managing its groups.
slackSlackteamIdstringrequiredThe team ID that has been configured for notifications.
teamNamestringread-onlyThe human readable name of the team that has been configured for notifications.
channelIdsstring[]Channels to send notifications to.
dmDisabledbooleanWhether DM notifications are disabled. This is false by default.
domainBaseUristringread-onlyThe domain base URI of the Slack instance, including the schema. This is detected on creation and is not editable. For example: https://myworkspace.slack.com
allowApprovalWorkflowbooleanWhether reviewers can approve requests directly from the Slack notification. This is true by default.
githubGitHuborgstringrequiredThe GitHub organization name to sync members and teams from. May be changed by the user on the GitHub side.
orgIdstringread-onlyThe immutable GitHub organization ID.
installationIdstringread-onlyThe GitHub App installation ID for this organization. Set by the installation callback.
baseUristringBase URI of the GitHub instance, including the schema. Defaults to “https://github.com”. Set this to target GitHub Enterprise Cloud.
displayNamestringread-onlyThe human readable display name of the GitHub organization, synced from GitHub. Empty if the organization has not set one.
cloudflareCloudflareaccountIdstringread-onlyThe ID of the Cloudflare account that members and policies are synced from. Determined by the account the admin grants access to when connecting, and not editable afterwards.
accountNamestringread-onlyThe human readable name of the Cloudflare account, read from Cloudflare when the integration is connected. Empty if Cloudflare reports the account without a name.
notionNotionworkspaceIdstringread-onlyThe ID of the Notion workspace that members are synced from. Determined by the workspace the admin grants access to when connecting, and not editable afterwards.
workspaceNamestringread-onlyThe human readable name of the Notion workspace, read from Notion when the integration is connected. Empty if Notion reports the workspace without a name.
linearLinearworkspaceIdstringread-onlyThe ID of the Linear workspace that members and teams are synced from. Determined by the workspace the admin grants access to when connecting, and not editable afterwards.
workspaceNamestringread-onlyThe human readable name of the Linear workspace, read from Linear when the integration is connected.
uriKeystringread-onlyThe URL key of the Linear workspace, used to build links into Linear. For example “oblique” for https://linear.app/oblique.
anthropicAnthropicapiKeystringrequiredThe Admin API key used to read the organization’s members and workspaces. Required when the integration is created, and never returned by the API. Provide it again to rotate the key.
organizationIdstringread-onlyThe ID of the Anthropic organization that members and workspaces are synced from. Determined by the organization the API key belongs to, and not editable afterwards.
organizationNamestringread-onlyThe human readable name of the Anthropic organization, read from Anthropic when the integration is connected.
posthogPostHogorganizationIdstringread-onlyThe ID of the PostHog organization that members and projects are synced from. Determined by the organization the admin grants access to when connecting, and not editable afterwards.
organizationNamestringread-onlyThe human readable name of the PostHog organization, read from PostHog when the integration is connected.
baseUristringread-onlyThe base URI of the PostHog region the organization lives in. Either “https://us.posthog.com” or “https://eu.posthog.com”.
createGroupForNewTeamsbooleanIf true, the integration will create a group for each new team.
userCountinteger (int32)read-onlyThe number of users that the system contains.
resourceCountinteger (int32)read-onlyThe number of resources that the system manages.
resourcePushCountinteger (int32)read-onlyThe number of resources that have been pushed to the integration.
resourcePullCountinteger (int32)read-onlyThe number of resources that have been pulled from the integration.
supportsPushbooleanread-onlyWhether the integration can push to at least one of the objects it reports. Some of its write capabilities may still be unavailable. Determined by the access the integration was granted, and re-evaluated on every sync.
needsReauthbooleanread-onlyWhether the integration is missing access that Oblique asks for, which is granted by reconnecting it. Re-evaluated on every sync.
Errors
| Status | Meaning |
|---|---|
400 | Malformed request |
401 | Missing or invalid API key |
403 | Not allowed for this API key |
404 | Not found |
429 | Too many requests |
500 | Internal server error |