Set-ITGlueContact

SYNOPSIS

Updates one or more contacts

SYNTAX

Bulk_Update (Default)

Set-ITGlueContact -Data <Object> [-WhatIf] [-Confirm] [<CommonParameters>]

Update

Set-ITGlueContact [-OrganizationID <Int64>] -ID <Int64> -Data <Object> [-WhatIf] [-Confirm]
 [<CommonParameters>]

Bulk_Update_ByFilter_PSA

Set-ITGlueContact [-FilterID <Int64>] [-FilterFirstName <String>] [-FilterLastName <String>]
 [-FilterTitle <String>] [-FilterContactTypeID <Int64>] [-FilterImportant] [-FilterPrimaryEmail <String>]
 [-FilterOrganizationID <String>] [-FilterPsaID <String>] -FilterPsaIntegrationType <String> -Data <Object>
 [-WhatIf] [-Confirm] [<CommonParameters>]

Bulk_Update_ByFilter

Set-ITGlueContact [-FilterID <Int64>] [-FilterFirstName <String>] [-FilterLastName <String>]
 [-FilterTitle <String>] [-FilterContactTypeID <Int64>] [-FilterImportant] [-FilterPrimaryEmail <String>]
 [-FilterOrganizationID <String>] [-FilterPsaIntegrationType <String>] -Data <Object> [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

The Set-ITGlueContact cmdlet updates the details of one or more specified contacts

Returns 422 Bad Request error if trying to update an externally synced record

Any attributes you don’t specify will remain unchanged

This function can call the following endpoints: Update = /contacts/:id /organizations/:organization_id/relationships/contacts/:id

Bulk_Update =  /contacts

Examples of JSON objects can be found under ITGlues developer documentation https://api.itglue.com/developer

EXAMPLES

EXAMPLE 1

Set-ITGlueContact -id 8675309 -Data $JsonObject

Updates the defined contact with the specified JSON object

PARAMETERS

-OrganizationID

A valid organization Id in your account

Type: Int64
Parameter Sets: Update
Aliases: org_id, organization_id

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

-ID

Define a contact id

Type: Int64
Parameter Sets: Update
Aliases:

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

-FilterID

Filter by contact id

Type: Int64
Parameter Sets: Bulk_Update_ByFilter_PSA, Bulk_Update_ByFilter
Aliases: filter_id

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

-FilterFirstName

Filter by contact first name

Type: String
Parameter Sets: Bulk_Update_ByFilter_PSA, Bulk_Update_ByFilter
Aliases: filter_first_name

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

-FilterLastName

Filter by contact last name

Type: String
Parameter Sets: Bulk_Update_ByFilter_PSA, Bulk_Update_ByFilter
Aliases: filter_last_name

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

-FilterTitle

Filter by contact title

Type: String
Parameter Sets: Bulk_Update_ByFilter_PSA, Bulk_Update_ByFilter
Aliases: filter_title

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

-FilterContactTypeID

Filter by contact type id

Type: Int64
Parameter Sets: Bulk_Update_ByFilter_PSA, Bulk_Update_ByFilter
Aliases: filter_contact_type_id

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

-FilterImportant

Filter by if contact is important

Type: SwitchParameter
Parameter Sets: Bulk_Update_ByFilter_PSA, Bulk_Update_ByFilter
Aliases: filter_important

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

-FilterPrimaryEmail

Filter by contact primary email address

Type: String
Parameter Sets: Bulk_Update_ByFilter_PSA, Bulk_Update_ByFilter
Aliases: filter_primary_email

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

-FilterOrganizationID

Filter by an organization ID

Type: String
Parameter Sets: Bulk_Update_ByFilter_PSA, Bulk_Update_ByFilter
Aliases: filter_organization_id

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

-FilterPsaID

Filter by a PSA id

This must be accompanied by the filter for FilterPsaIntegrationType

Type: String
Parameter Sets: Bulk_Update_ByFilter_PSA
Aliases: filter_psa_id

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

-FilterPsaIntegrationType

Filter by a PSA integration type

Allowed values: ‘manage’, ‘autotask’, ‘tigerpaw’, ‘kaseya-bms’, ‘pulseway-psa’, ‘vorex’

Type: String
Parameter Sets: Bulk_Update_ByFilter_PSA
Aliases: filter_psa_integration_type

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: Bulk_Update_ByFilter
Aliases: filter_psa_integration_type

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

-Data

JSON object or array depending on bulk changes or not

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
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: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

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

Required: False
Position: Named
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

N/A

https://celerium.github.io/ITGlue-PowerShellWrapper/site/Contacts/Set-ITGlueContact.html

https://api.itglue.com/developer/#contacts-update