Skip to content

Latest commit

 

History

History
146 lines (104 loc) · 5.88 KB

File metadata and controls

146 lines (104 loc) · 5.88 KB

external help file: ConnectWiseManageAPI-help.xml Module Name: ConnectWiseManageAPI online version: https://marketplace.connectwise.com/docs/redoc/manage/company.html#tag/CompanyTypeAssociations/paths/~1company~1companyTypeAssociations/post schema: 2.0.0

New-CWMCompanyTypeAssociation

SYNOPSIS

Creates a new type association for a company

SYNTAX

New-CWMCompanyTypeAssociation [[-id] <Int32>] [-type] <Hashtable> [-company] <Hashtable> [[-_info] <Hashtable>]
 [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Assign a type to a company.

EXAMPLES

EXAMPLE 1

New-CWMCompanyTypeAssociation -company @{id = 4385} -Type @{id = 68}

Adds the type 68 to company 4385

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-_info

Metadata

Type: Hashtable
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-company

Company object for the company you want to associate the type with

Type: Hashtable
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-id

don't use?

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-type

Company type reference object that you want to associate with the company

Type: Hashtable
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Author: Chris Taylor Date: 8/22/2018

RELATED LINKS

https://marketplace.connectwise.com/docs/redoc/manage/company.html#tag/CompanyTypeAssociations/paths/1company1companyTypeAssociations/post