Skip to content

Unable to update a asset #24

Open
Open
@Oliver-NC

Description

@Oliver-NC

Hi,

I am in the process of creating my own Flexible_assets. I have created the Asset type and the fields however I cannot update the flex assets with either Set or New.

Can you please see my follow commands and what I am doing wrong?

$data2 = @{
type = 'flexible_assets'
attributes = @{
organization_id = ''
flexible_asset_type_id = ''
traits = @{
mailbox_forwards = '''
}
}
}

New-ITGlueFlexibleAssets -data $data2

Error:

New-ITGlueFlexibleAssets : {"errors":[{"status":422,"title":"Unprocessable Entity","detail":"Request contains invalid trait keys","source":{"pointer":"data/attributes/traits"}}]}
At line:1 char:1

  • New-ITGlueFlexibleAssets -data $data2
  •   + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-ITGlueFlexibleAssets
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions