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

# Preview a change to what partners can do with an object's records

> Takes the same body as `updateObjectPartnerAccess` and returns, without saving anything, the definition as it is now, the partner access the object would have and `record_count`, how many live records the object has. That is every record in the object, not how many any partner sees or would stop seeing. It refuses what the update would refuse. A partner type or an object without its own records returns 400. `create`, `edit` or `delete` sent as true returns 400 reason `not_available_yet` (partners cannot do them yet). Lists sent with (or into) the `all_partners` audience, an unknown tier or tag uuid, an archived tier or a tag of the wrong kind return 400. A stale `expected_schema_version` returns 409 and nothing is saved. The answer is never cached for an idempotent replay. Needs a company admin.



## OpenAPI

````yaml /openapi.json post /schema/objects/{key}/partner-access/preview
openapi: 3.1.0
info:
  title: Journeybee API
  description: >-
    Public REST API for the Journeybee PRM platform.


    Manage partners, leads, deals, products, pricing calculators, tasks, and
    more programmatically.


    All endpoints require authentication via API key. Use `Authorization: Bearer
    <api_key>` or `Api-Key <api_key>` header.


    See the [Authentication guide](/guides/authentication) for details.
  version: 1.0.0
servers:
  - url: https://api.journeybee.io/v1
    description: Production
security:
  - apiKey: []
tags:
  - name: Account
    description: >-
      Authenticated company account info, API key permissions, and enabled
      modules
  - name: Agreement Templates
  - name: Agreements
  - name: Analytics
    description: >-
      Dashboard analytics and reporting — commission, engagement, LMS, and
      partner revenue metrics
  - name: Assets
    description: File and media asset management
  - name: Attributions
    description: Attribution type definitions
  - name: Audit Log
    description: Unified audit log of company activity (read-only)
  - name: Automations
    description: Workflow automation rule configurations
  - name: Campaign Audience
    description: Audience filters on a campaign
  - name: Campaign Partners
    description: Partners shared into a campaign audience
  - name: Campaigns
    description: Partner marketing campaigns
  - name: Card Assignees
    description: Assigned users on a card
  - name: Card Partners
    description: Partners linked to a card
  - name: Card Tags
    description: Tags on a card
  - name: Cards
    description: Kanban project cards
  - name: Categories
    description: Partner categories
  - name: Certification Categories
    description: Categories on a certification
  - name: Certification Enrollments
    description: User enrollments in a certification
  - name: Certification Folders
    description: Folders on a certification
  - name: Certification Resources
    description: Curriculum resources in a certification
  - name: Certification Translations
  - name: Certifications
    description: LMS certifications
  - name: Commissions
    description: >-
      Commission rule configurations with calculation entries,
      tier/category/partnership scoping
  - name: Contacts
    description: Partner contacts across partnerships
  - name: Currencies
    description: Available currencies
  - name: Custom Field Options
    description: Options on select/multi-select custom fields
  - name: Custom Field Rules
    description: Visibility and requirement rules on custom fields
  - name: Custom Field Values
    description: Custom field values
  - name: Custom Fields
    description: Custom field definitions
  - name: Deal Commission
    description: Commission calculation on a deal
  - name: Deal Custom Field Values
    description: Custom field values on a deal
  - name: Deal Notes
    description: Notes on a deal
  - name: Deal Partner Roles
    description: Roles a supporting (co-sell) partner can hold on a deal
  - name: Deal Partners
    description: Supporting (co-sell) partners on a deal
  - name: Deal Payments
    description: Payment records on a deal (read-only)
  - name: Deal Products
    description: Products attached to a deal
  - name: Deal Stages
    description: Deal pipeline stages
  - name: Deal Tags
    description: Tags on a deal
  - name: Deal Tasks
    description: Tasks on a deal
  - name: Deals
    description: Deal management
  - name: Event Subscriptions
  - name: Event Types
  - name: Folders
    description: Content folders
  - name: Integrations
    description: Company integration settings
  - name: Lead Attributions
    description: Attribution records on a lead
  - name: Lead Contacts
    description: Partner contacts on a lead
  - name: Lead Custom Field Values
    description: Custom field values on a lead
  - name: Lead Distributor
    description: Distributors for a lead
  - name: Lead Notes
    description: Notes on a lead
  - name: Lead Products
    description: Products attached to a lead
  - name: Lead Quotes
    description: >-
      Quotes on a lead — generated from pricing calculators with line items and
      totals
  - name: Lead Tags
    description: Tags on a lead
  - name: Lead Tasks
    description: Tasks on a lead
  - name: Lead Users
    description: Assigned users on a lead
  - name: Leads
    description: Lead management
  - name: LMS
  - name: Marketing Templates
    description: Marketing email templates
  - name: Navigation
    description: 'The company default menu: read, preview, update and reset'
  - name: Notification Rules
    description: Who is notified, on which events, through which channels
  - name: Object Records
  - name: Partner Contacts
    description: Contacts on a partner
  - name: Partner Custom Field Values
    description: Custom field values on a partner
  - name: Partner Domains
    description: Domains on a partner
  - name: Partner Notes
    description: Notes on a partner
  - name: Partner Resellers
    description: Reseller assignments on a distributor
  - name: Partner Stages
    description: Partner pipeline stages
  - name: Partner Tags
    description: Tags on a partner
  - name: Partner Users
    description: Assigned users on a partner
  - name: Partners
    description: Core partner CRUD
  - name: Pricing Calculator Fields
    description: Input fields on a pricing calculator
  - name: Pricing Calculator Formulas
    description: Discount/tax/surcharge formulas on a pricing calculator
  - name: Pricing Calculator Products
    description: Products attached to a pricing calculator
  - name: Pricing Calculators
    description: Pricing calculator configurations
  - name: Products
    description: Product catalog
  - name: Proposals
    description: >-
      Durable action proposals: an AI or API caller proposes a mutation, a
      person decides and runs it
  - name: Resource Blocks
    description: Content blocks within a resource
  - name: Resource Categories
    description: Categories on a resource
  - name: Resource Folders
    description: Folders on a resource
  - name: Resource Tags
    description: Tags on a resource
  - name: Resource Translations
  - name: Resources
    description: Learning resources
  - name: Room Blocks
    description: Content blocks within a room
  - name: Room Categories
    description: Category-based room access control
  - name: Room Partnerships
    description: Direct partnership room access
  - name: Room Secure Files
    description: >-
      Private files in a secure_files room block: folders, multipart uploads,
      signed download links and download history
  - name: Room Stages
    description: Stage-based room access control
  - name: Room Tags
    description: Tag-based room access control
  - name: Room Tiers
    description: Tier-based room access control
  - name: Rooms
    description: Partner portal rooms
  - name: Sales Reports
  - name: Schema
    description: >-
      Company configuration by key: object type settings, relationship
      permissions and partner visibility
  - name: Standard Fields
    description: Standard field settings
  - name: Tags
    description: Tag definitions
  - name: Task Users
    description: Assigned users on a task
  - name: Tasks
    description: Task management
  - name: Terminology
    description: Display names for leads and deals
  - name: Tiers
    description: Partner tiers
  - name: Users
    description: Company team members
  - name: Webhook Events
    description: Outbound webhook payloads sent to your configured URLs when events occur
paths:
  /schema/objects/{key}/partner-access/preview:
    post:
      tags:
        - Schema
      summary: Preview a change to what partners can do with an object's records
      description: >-
        Takes the same body as `updateObjectPartnerAccess` and returns, without
        saving anything, the definition as it is now, the partner access the
        object would have and `record_count`, how many live records the object
        has. That is every record in the object, not how many any partner sees
        or would stop seeing. It refuses what the update would refuse. A partner
        type or an object without its own records returns 400. `create`, `edit`
        or `delete` sent as true returns 400 reason `not_available_yet`
        (partners cannot do them yet). Lists sent with (or into) the
        `all_partners` audience, an unknown tier or tag uuid, an archived tier
        or a tag of the wrong kind return 400. A stale `expected_schema_version`
        returns 409 and nothing is saved. The answer is never cached for an
        idempotent replay. Needs a company admin.
      operationId: previewObjectPartnerAccess
      parameters:
        - schema:
            type: string
            pattern: ^[a-z][a-z0-9_-]{0,62}$
          in: path
          name: key
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                expected_schema_version:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                see:
                  description: >-
                    Partners see the object's records in the portal. Off hides
                    every record, linked ones included.
                  type: boolean
                create:
                  description: >-
                    Partners cannot do this yet: only false is accepted (true
                    returns 400 reason `not_available_yet`).
                  type: boolean
                edit:
                  description: >-
                    Partners cannot do this yet: only false is accepted (true
                    returns 400 reason `not_available_yet`).
                  type: boolean
                delete:
                  description: >-
                    Partners cannot do this yet: only false is accepted (true
                    returns 400 reason `not_available_yet`).
                  type: boolean
                audience:
                  description: >-
                    `all_partners`: every partner of the company, whatever its
                    partner type. `rules`: the partners the lists below name.
                    Saving `all_partners` clears the lists. While `see` is on, a
                    partner also sees a record linked to them through a live
                    relationship, even outside the audience; contact tags in the
                    lists still apply.
                  type: string
                  enum:
                    - all_partners
                    - rules
                partner_types:
                  description: >-
                    With `rules`: the built-in partner types in the audience.
                    Partners of partner types the company created are included
                    only by `all_partners` or a link.
                  maxItems: 3
                  type: array
                  items:
                    type: string
                    enum:
                      - referral
                      - reseller
                      - distributor
                tier_uuids:
                  description: 'With `rules`: only partners on one of these tiers.'
                  maxItems: 500
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                partner_tag_uuids:
                  description: 'With `rules`: only partners with one of these partner tags.'
                  maxItems: 500
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                contact_tag_uuids:
                  description: >-
                    With `rules`: only partner contacts with one of these
                    contact tags see the records.
                  maxItems: 500
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
              required:
                - expected_schema_version
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  definition:
                    type: object
                    properties:
                      uuid:
                        type: string
                      key:
                        type: string
                      singular_label:
                        type: string
                      plural_label:
                        type: string
                      schema_version:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                      is_partner_type:
                        type: boolean
                      archived:
                        type: boolean
                      enabled_features:
                        type: array
                        items:
                          type: string
                          enum:
                            - notes
                            - files
                            - tasks
                            - history
                            - assigned_users
                            - tags
                            - stages
                      icon:
                        anyOf:
                          - type: string
                          - type: 'null'
                      name_label:
                        anyOf:
                          - type: string
                          - type: 'null'
                    required:
                      - uuid
                      - key
                      - singular_label
                      - plural_label
                      - schema_version
                      - is_partner_type
                      - archived
                      - enabled_features
                      - icon
                      - name_label
                    additionalProperties: false
                  partner_access:
                    type: object
                    properties:
                      see:
                        type: boolean
                      create:
                        type: boolean
                      edit:
                        type: boolean
                      delete:
                        type: boolean
                      audience:
                        type: string
                        enum:
                          - all_partners
                          - rules
                      partner_types:
                        type: array
                        items:
                          type: string
                          enum:
                            - referral
                            - reseller
                            - distributor
                      tier_uuids:
                        type: array
                        items:
                          type: string
                      partner_tag_uuids:
                        type: array
                        items:
                          type: string
                      contact_tag_uuids:
                        type: array
                        items:
                          type: string
                    required:
                      - see
                      - create
                      - edit
                      - delete
                      - audience
                      - partner_types
                      - tier_uuids
                      - partner_tag_uuids
                      - contact_tag_uuids
                    additionalProperties: false
                  record_count:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                required:
                  - definition
                  - partner_access
                  - record_count
                additionalProperties: false
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: API key authentication. Use "Bearer <api_key>" or "Api-Key <api_key>".

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.