> ## Documentation Index
> Fetch the complete documentation index at: https://docs.assetinfinity.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create or update an identity provider. Null means "leave it alone" on every field but the code.



## OpenAPI

````yaml /api-reference/openapi.json post /rpc/save_identity_provider
openapi: 3.0.0
info:
  description: ''
  title: >-
    The only schema PostgREST exposes. Reads are security_invoker views; writes
    are SECURITY DEFINER functions. Rebuilt wholesale on every deploy — it holds
    no data.
  version: 12.2.3
servers:
  - url: https://app.assetinfinity.ai/api
security: []
tags:
  - name: Signing in
  - name: Profile
  - name: Assets
  - name: Asset lifecycle
  - name: Work lifecycle
  - name: Maintenance
  - name: Inventory
  - name: Inventory detail
  - name: Procurement
  - name: Contracts
  - name: Workforce
  - name: Capacity
  - name: Dispatch
  - name: Tools
  - name: Inspections
  - name: Verification
  - name: Reliability
  - name: Parts demand
  - name: Sensors and meters
  - name: Map
  - name: Floor plans
  - name: Labels
  - name: Lost and found
  - name: Root cause analysis
  - name: Reports
  - name: Audit center
  - name: Activity
  - name: Notifications
  - name: Channels
  - name: Search
  - name: Copilot
  - name: Import
  - name: Files
  - name: Sync
  - name: Support
  - name: Admin
  - name: Access
  - name: Lookups
  - name: Read models
  - name: Branding
  - name: Custom fields
  - name: Form studio
  - name: Workflows
  - name: Workflow studio
  - name: Rules
  - name: Statuses and transitions
  - name: Currencies and locales
  - name: Work configuration
  - name: Asset configuration
  - name: Inventory configuration
  - name: Tool configuration
  - name: Workforce configuration
  - name: Vendor and contract configuration
  - name: Document configuration
  - name: Inspection configuration
  - name: Sites, locations and the organisation
  - name: Platform
  - name: Amendments
  - name: Asset clone
  - name: Asset components
  - name: Asset register
  - name: Asset transfer
  - name: Audit feed
  - name: Billing
  - name: Bookings
  - name: Budgets
  - name: Bulk jobs
  - name: Calibration history
  - name: Capex plans
  - name: Conversations
  - name: Costing
  - name: Currency
  - name: Dashboards
  - name: Directory sync
  - name: Document control
  - name: Document folders
  - name: Document tree
  - name: Documents
  - name: Energy
  - name: Extracts
  - name: Features
  - name: Feeds
  - name: File exchange
  - name: Filing exceptions
  - name: Finance
  - name: Inbound mail
  - name: Keys
  - name: Knowledge
  - name: Licence
  - name: List views
  - name: Locations
  - name: Mapping
  - name: Mcp
  - name: Mcp oauth
  - name: Mfa
  - name: Numbering
  - name: Permits
  - name: Readers
  - name: Reference
  - name: Reference columns
  - name: Reference entry
  - name: Release
  - name: Scim
  - name: Security streams
  - name: Self verification
  - name: Setup
  - name: Shutdown
  - name: Sso
  - name: Telegram
  - name: Tenant switch
  - name: The caller's own work
  - name: The checklist library
  - name: Tools on a job, and who has them out
  - name: Tray
  - name: Vendor spend forecast
  - name: Vendors and contracts
  - name: Visitors
  - name: Work order execution
  - name: Work sequencing
  - name: Workforce detail
externalDocs:
  description: PostgREST Documentation
  url: https://postgrest.org/en/v12/references/api.html
paths:
  /rpc/save_identity_provider:
    post:
      tags:
        - Sso
      summary: >-
        Create or update an identity provider. Null means "leave it alone" on
        every field but the code.
      parameters:
        - $ref: '#/components/parameters/preferParams'
      requestBody:
        content:
          application/json:
            schema:
              description: >-
                Create or update an identity provider. Null means "leave it
                alone" on every field but the code.
              properties:
                p_allowed_email_domains:
                  format: text[]
                  items:
                    type: string
                  type: array
                p_attr_email:
                  format: text
                  type: string
                p_attr_given_name:
                  format: text
                  type: string
                p_attr_groups:
                  format: text
                  type: string
                p_attr_surname:
                  format: text
                  type: string
                p_break_glass_role_id:
                  format: uuid
                  type: string
                p_clock_skew_seconds:
                  format: integer
                  type: integer
                p_code:
                  format: text
                  type: string
                p_default_role_id:
                  format: uuid
                  type: string
                p_display_name:
                  format: text
                  type: string
                p_idp_entity_id:
                  format: text
                  type: string
                p_idp_slo_url:
                  format: text
                  type: string
                p_idp_sso_url:
                  format: text
                  type: string
                p_is_enabled:
                  format: boolean
                  type: boolean
                p_jit_provisioning:
                  format: boolean
                  type: boolean
                p_kind:
                  format: text
                  type: string
                p_ldap_allow_plaintext:
                  format: boolean
                  type: boolean
                p_ldap_bind_dn:
                  format: text
                  type: string
                p_ldap_bind_password:
                  format: text
                  type: string
                p_ldap_group_base_dn:
                  format: text
                  type: string
                p_ldap_group_filter:
                  format: text
                  type: string
                p_ldap_nested_groups:
                  format: boolean
                  type: boolean
                p_ldap_start_tls:
                  format: boolean
                  type: boolean
                p_ldap_timeout_seconds:
                  format: integer
                  type: integer
                p_ldap_uid_attribute:
                  format: text
                  type: string
                p_ldap_url:
                  format: text
                  type: string
                p_ldap_user_base_dn:
                  format: text
                  type: string
                p_ldap_user_dn_template:
                  format: text
                  type: string
                p_ldap_user_filter:
                  format: text
                  type: string
                p_local_passwords_enabled:
                  format: boolean
                  type: boolean
                p_metadata_url:
                  format: text
                  type: string
                p_metadata_xml:
                  format: text
                  type: string
                p_oidc_client_id:
                  format: text
                  type: string
                p_oidc_client_secret:
                  format: text
                  type: string
                p_oidc_discovery_url:
                  format: text
                  type: string
                p_oidc_issuer:
                  format: text
                  type: string
                p_oidc_scopes:
                  format: text
                  type: string
                p_want_authn_requests_signed:
                  format: boolean
                  type: boolean
              required:
                - p_code
              type: object
          application/vnd.pgrst.object+json:
            schema:
              description: >-
                Create or update an identity provider. Null means "leave it
                alone" on every field but the code.
              properties:
                p_allowed_email_domains:
                  format: text[]
                  items:
                    type: string
                  type: array
                p_attr_email:
                  format: text
                  type: string
                p_attr_given_name:
                  format: text
                  type: string
                p_attr_groups:
                  format: text
                  type: string
                p_attr_surname:
                  format: text
                  type: string
                p_break_glass_role_id:
                  format: uuid
                  type: string
                p_clock_skew_seconds:
                  format: integer
                  type: integer
                p_code:
                  format: text
                  type: string
                p_default_role_id:
                  format: uuid
                  type: string
                p_display_name:
                  format: text
                  type: string
                p_idp_entity_id:
                  format: text
                  type: string
                p_idp_slo_url:
                  format: text
                  type: string
                p_idp_sso_url:
                  format: text
                  type: string
                p_is_enabled:
                  format: boolean
                  type: boolean
                p_jit_provisioning:
                  format: boolean
                  type: boolean
                p_kind:
                  format: text
                  type: string
                p_ldap_allow_plaintext:
                  format: boolean
                  type: boolean
                p_ldap_bind_dn:
                  format: text
                  type: string
                p_ldap_bind_password:
                  format: text
                  type: string
                p_ldap_group_base_dn:
                  format: text
                  type: string
                p_ldap_group_filter:
                  format: text
                  type: string
                p_ldap_nested_groups:
                  format: boolean
                  type: boolean
                p_ldap_start_tls:
                  format: boolean
                  type: boolean
                p_ldap_timeout_seconds:
                  format: integer
                  type: integer
                p_ldap_uid_attribute:
                  format: text
                  type: string
                p_ldap_url:
                  format: text
                  type: string
                p_ldap_user_base_dn:
                  format: text
                  type: string
                p_ldap_user_dn_template:
                  format: text
                  type: string
                p_ldap_user_filter:
                  format: text
                  type: string
                p_local_passwords_enabled:
                  format: boolean
                  type: boolean
                p_metadata_url:
                  format: text
                  type: string
                p_metadata_xml:
                  format: text
                  type: string
                p_oidc_client_id:
                  format: text
                  type: string
                p_oidc_client_secret:
                  format: text
                  type: string
                p_oidc_discovery_url:
                  format: text
                  type: string
                p_oidc_issuer:
                  format: text
                  type: string
                p_oidc_scopes:
                  format: text
                  type: string
                p_want_authn_requests_signed:
                  format: boolean
                  type: boolean
              required:
                - p_code
              type: object
          application/vnd.pgrst.object+json;nulls=stripped:
            schema:
              description: >-
                Create or update an identity provider. Null means "leave it
                alone" on every field but the code.
              properties:
                p_allowed_email_domains:
                  format: text[]
                  items:
                    type: string
                  type: array
                p_attr_email:
                  format: text
                  type: string
                p_attr_given_name:
                  format: text
                  type: string
                p_attr_groups:
                  format: text
                  type: string
                p_attr_surname:
                  format: text
                  type: string
                p_break_glass_role_id:
                  format: uuid
                  type: string
                p_clock_skew_seconds:
                  format: integer
                  type: integer
                p_code:
                  format: text
                  type: string
                p_default_role_id:
                  format: uuid
                  type: string
                p_display_name:
                  format: text
                  type: string
                p_idp_entity_id:
                  format: text
                  type: string
                p_idp_slo_url:
                  format: text
                  type: string
                p_idp_sso_url:
                  format: text
                  type: string
                p_is_enabled:
                  format: boolean
                  type: boolean
                p_jit_provisioning:
                  format: boolean
                  type: boolean
                p_kind:
                  format: text
                  type: string
                p_ldap_allow_plaintext:
                  format: boolean
                  type: boolean
                p_ldap_bind_dn:
                  format: text
                  type: string
                p_ldap_bind_password:
                  format: text
                  type: string
                p_ldap_group_base_dn:
                  format: text
                  type: string
                p_ldap_group_filter:
                  format: text
                  type: string
                p_ldap_nested_groups:
                  format: boolean
                  type: boolean
                p_ldap_start_tls:
                  format: boolean
                  type: boolean
                p_ldap_timeout_seconds:
                  format: integer
                  type: integer
                p_ldap_uid_attribute:
                  format: text
                  type: string
                p_ldap_url:
                  format: text
                  type: string
                p_ldap_user_base_dn:
                  format: text
                  type: string
                p_ldap_user_dn_template:
                  format: text
                  type: string
                p_ldap_user_filter:
                  format: text
                  type: string
                p_local_passwords_enabled:
                  format: boolean
                  type: boolean
                p_metadata_url:
                  format: text
                  type: string
                p_metadata_xml:
                  format: text
                  type: string
                p_oidc_client_id:
                  format: text
                  type: string
                p_oidc_client_secret:
                  format: text
                  type: string
                p_oidc_discovery_url:
                  format: text
                  type: string
                p_oidc_issuer:
                  format: text
                  type: string
                p_oidc_scopes:
                  format: text
                  type: string
                p_want_authn_requests_signed:
                  format: boolean
                  type: boolean
              required:
                - p_code
              type: object
          text/csv:
            schema:
              description: >-
                Create or update an identity provider. Null means "leave it
                alone" on every field but the code.
              properties:
                p_allowed_email_domains:
                  format: text[]
                  items:
                    type: string
                  type: array
                p_attr_email:
                  format: text
                  type: string
                p_attr_given_name:
                  format: text
                  type: string
                p_attr_groups:
                  format: text
                  type: string
                p_attr_surname:
                  format: text
                  type: string
                p_break_glass_role_id:
                  format: uuid
                  type: string
                p_clock_skew_seconds:
                  format: integer
                  type: integer
                p_code:
                  format: text
                  type: string
                p_default_role_id:
                  format: uuid
                  type: string
                p_display_name:
                  format: text
                  type: string
                p_idp_entity_id:
                  format: text
                  type: string
                p_idp_slo_url:
                  format: text
                  type: string
                p_idp_sso_url:
                  format: text
                  type: string
                p_is_enabled:
                  format: boolean
                  type: boolean
                p_jit_provisioning:
                  format: boolean
                  type: boolean
                p_kind:
                  format: text
                  type: string
                p_ldap_allow_plaintext:
                  format: boolean
                  type: boolean
                p_ldap_bind_dn:
                  format: text
                  type: string
                p_ldap_bind_password:
                  format: text
                  type: string
                p_ldap_group_base_dn:
                  format: text
                  type: string
                p_ldap_group_filter:
                  format: text
                  type: string
                p_ldap_nested_groups:
                  format: boolean
                  type: boolean
                p_ldap_start_tls:
                  format: boolean
                  type: boolean
                p_ldap_timeout_seconds:
                  format: integer
                  type: integer
                p_ldap_uid_attribute:
                  format: text
                  type: string
                p_ldap_url:
                  format: text
                  type: string
                p_ldap_user_base_dn:
                  format: text
                  type: string
                p_ldap_user_dn_template:
                  format: text
                  type: string
                p_ldap_user_filter:
                  format: text
                  type: string
                p_local_passwords_enabled:
                  format: boolean
                  type: boolean
                p_metadata_url:
                  format: text
                  type: string
                p_metadata_xml:
                  format: text
                  type: string
                p_oidc_client_id:
                  format: text
                  type: string
                p_oidc_client_secret:
                  format: text
                  type: string
                p_oidc_discovery_url:
                  format: text
                  type: string
                p_oidc_issuer:
                  format: text
                  type: string
                p_oidc_scopes:
                  format: text
                  type: string
                p_want_authn_requests_signed:
                  format: boolean
                  type: boolean
              required:
                - p_code
              type: object
        required: true
      responses:
        '200':
          description: OK
components:
  parameters:
    preferParams:
      description: Preference
      in: header
      name: Prefer
      required: false
      schema:
        enum:
          - params=single-object
        type: string

````