Skip to main content
Docs

OrganizationSuggestion

An interface representing an Organization suggestion.

  • Name
    id
    Type
    string
    Description

    The ID of the Organization suggestion.

  • Name
    publicOrganizationData
    Type
    { hasImage: boolean; imageUrl: string; name: string; id: string; slug: string | null; }
    Description

    The public data of the Organization.

    • hasImage: Whether the Organization has an image.
    • imageUrl: Holds the Organization logo. Compatible with Clerk's Image Optimization.
    • name: The name of the Organization.
    • id: The ID of the Organization.
    • slug: The slug of the Organization.
  • Name
    status
    Type
    'pending' | 'accepted'
    Description

    The status of the Organization suggestion.

  • Name
    createdAt
    Type
    Date
    Description

    The date and time when the Organization suggestion was created.

  • Name
    updatedAt
    Type
    Date
    Description

    The date and time when the Organization suggestion was last updated.

accept()

Accepts the Organization suggestion. Returns the accepted OrganizationSuggestion.

function accept(): Promise<OrganizationSuggestionResource>

Feedback

What did you think of this content?

Last updated on