Set-ITGlueChecklist
SYNOPSIS
Update multiple checklists / Update multiple checklists for a particular organization / Update a checklist / Update a checklist for a particular organization
SYNTAX
BulkUpdate (Default)
Set-ITGlueChecklist -Data <Object> [-Raw] [-WhatIf] [-Confirm]
ByOrganizationById
Set-ITGlueChecklist [-OrganizationId] <long> [-Id] <long> -Data <Object> [-Raw] [-WhatIf] [-Confirm]
ByOrganization
Set-ITGlueChecklist [-OrganizationId] <long> -Data <Object> [-Raw] [-WhatIf] [-Confirm]
ById
Set-ITGlueChecklist [-Id] <long> -Data <Object> [-Raw] [-WhatIf] [-Confirm]
ALIASES
This cmdlet has the following aliases,
- None
DESCRIPTION
Parameter set [ BulkUpdate ] - The Set-ITGlueChecklist cmdlet invokes the PATCH method of the /checklists endpoint (Update multiple checklists)
Updates a list of checklists.
Parameter set [ ByOrganization ] - The Set-ITGlueChecklist cmdlet invokes the PATCH method of the /organizations/{organization_id}/relationships/checklists endpoint (Update multiple checklists for a particular organization)
Updates a list of checklists.
Parameter set [ ById ] - The Set-ITGlueChecklist cmdlet invokes the PATCH method of the /checklists/{id} endpoint (Update a checklist)
Updates an existing checklist. Returns the updated object if successful.
JSON data object must be located in request body:
{ “data”: { “type”: “checklists”, “attributes”: { “name”: “Checklist Name”, “description”: “Checklist Description” } } }
Example return value:
{ “data”: { “id”: “20”, “type”: “checklists”, “attributes”: { “assignee_id”: 1, “assignee-name”: “assigee’s name”, “creator_id”: 1, “creator-name”: “creator’s name” “completed”: true, “description”: “Checklist Description”, “due_date”: ‘2018-01-01’, “name”: “Checklist Name”, “created-at”: “2017-10-19T22:31:00.000Z”, “updated-at”: “2017-10-19T22:31:00.000Z” } } }
Parameter set [ ByOrganizationById ] - The Set-ITGlueChecklist cmdlet invokes the PATCH method of the /organizations/{organization_id}/relationships/checklists/{id} endpoint (Update a checklist for a particular organization)
Updates an existing checklist. Returns the updated object if successful.
JSON data object must be located in request body:
{ “data”: { “type”: “checklists”, “attributes”: { “name”: “Checklist Name”, “description”: “Checklist Description” } } }
Example return value:
{ “data”: { “id”: “20”, “type”: “checklists”, “attributes”: { “assignee_id”: 1, “assignee-name”: “assigee’s name”, “creator_id”: 1, “creator-name”: “creator’s name” “completed”: true, “description”: “Checklist Description”, “due_date”: ‘2018-01-01’, “name”: “Checklist Name”, “created-at”: “2017-10-19T22:31:00.000Z”, “updated-at”: “2017-10-19T22:31:00.000Z” } } }
This is a write function. It changes data in ITGlue. Use -WhatIf to see the request without sending it
EXAMPLES
EXAMPLE 1
Set-ITGlueChecklist -Data @{} -WhatIf
Shows the PATCH request to the /checklists endpoint without sending it
EXAMPLE 2
Set-ITGlueChecklist -OrganizationId 12345 -Data @{} -WhatIf
Shows the PATCH request to the /organizations/{organization_id}/relationships/checklists endpoint without sending it
EXAMPLE 3
Set-ITGlueChecklist -Id 12345 -Data @{} -WhatIf
Shows the PATCH request to the /checklists/{id} endpoint without sending it
EXAMPLE 4
Set-ITGlueChecklist -OrganizationId 12345 -Id 12345 -Data @{} -WhatIf
Shows the PATCH request to the /organizations/{organization_id}/relationships/checklists/{id} endpoint without sending it
PARAMETERS
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Data
Defines the data of the JSON:API request body. Accepts a hashtable, an object, or a JSON string
The value is sent as the data property of the request body, such as @{ type = ‘organizations’; attributes = @{ name = ‘Example’ } }. An object with a single data property & a JSON string are sent as is
Body properties:
- type (string) - checklists
- attributes (object):
- assignee_id (integer)
- checklist_template_id (integer) - Required when creating a checklist from a checklist template. \
- completed (boolean)
- description (string)
- due_date (string)
- id (integer) - Required identifier for bulk updates
- name (string)
- organization_id (integer)
- restricted (boolean)
Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: ById
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: ByOrganization
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: BulkUpdate
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Id
Defines the ID of the item
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
Position: 1
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: ById
Position: 0
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-OrganizationId
Only required for nested relationships route
Notes: Must be a valid Organization Id in your Account
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases:
- organization_id
ParameterSets:
- Name: ByOrganizationById
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
- Name: ByOrganization
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Raw
Returns the full API response (data, meta, links, & included) instead of only the data
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-WhatIf
Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.Int64
OUTPUTS
NOTES
Endpoint : PATCH /checklists Endpoint : PATCH /organizations/{organization_id}/relationships/checklists Endpoint : PATCH /checklists/{id} Endpoint : PATCH /organizations/{organization_id}/relationships/checklists/{id}