Constructors

Methods

  • Retrieve a company by its ID (companyId) or by a unique property (idProperty). You can specify what is returned using the properties query parameter. Retrieve a company

    Parameters

    • companyId: string

      The ID of the company

    • Optionalproperties: string[]

      A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

    • OptionalpropertiesWithHistory: string[]

      A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.

    • Optionalassociations: string[]

      A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

    • Optionalarchived: boolean

      Whether to return only results that have been archived.

    • OptionalidProperty: string

      The name of a property whose values are unique for this object

    • Optional_options: PromiseConfigurationOptions

    Returns Promise<SimplePublicObjectWithAssociations>

  • Retrieve a company by its ID (companyId) or by a unique property (idProperty). You can specify what is returned using the properties query parameter. Retrieve a company

    Parameters

    • companyId: string

      The ID of the company

    • Optionalproperties: string[]

      A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

    • OptionalpropertiesWithHistory: string[]

      A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.

    • Optionalassociations: string[]

      A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

    • Optionalarchived: boolean

      Whether to return only results that have been archived.

    • OptionalidProperty: string

      The name of a property whose values are unique for this object

    • Optional_options: PromiseConfigurationOptions

    Returns Promise<HttpInfo<SimplePublicObjectWithAssociations>>

  • Retrieve all companies, using query parameters to control the information that gets returned. Retrieve companies

    Parameters

    • Optionallimit: number

      The maximum number of results to display per page.

    • Optionalafter: string

      The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.

    • Optionalproperties: string[]

      A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

    • OptionalpropertiesWithHistory: string[]

      A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.

    • Optionalassociations: string[]

      A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

    • Optionalarchived: boolean

      Whether to return only results that have been archived.

    • Optional_options: PromiseConfigurationOptions

    Returns Promise<CollectionResponseSimplePublicObjectWithAssociationsForwardPaging>

  • Retrieve all companies, using query parameters to control the information that gets returned. Retrieve companies

    Parameters

    • Optionallimit: number

      The maximum number of results to display per page.

    • Optionalafter: string

      The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.

    • Optionalproperties: string[]

      A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.

    • OptionalpropertiesWithHistory: string[]

      A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.

    • Optionalassociations: string[]

      A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.

    • Optionalarchived: boolean

      Whether to return only results that have been archived.

    • Optional_options: PromiseConfigurationOptions

    Returns Promise<HttpInfo<CollectionResponseSimplePublicObjectWithAssociationsForwardPaging>>

  • Update a company by ID (companyId) or unique property value (idProperty). Provided property values will be overwritten. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string. Update a company

    Parameters

    Returns Promise<SimplePublicObject>