aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

Cannot update --thing-type-properties with aws iot update-thing-type

Open AleksandarGT opened this issue 4 weeks ago • 1 comments

Describe the bug

I wanted to update aws iot core thing type searchable attributes and I saw in the documentation that it is possible using the CLI, but running the following command

aws iot update-thing-type --thing-type-name "Test_type" --thing-type-properties searchableAttributes="product,environment"

yields the following output

An error occurred (InvalidRequestException) when calling the UpdateThingType operation: Can only update mqtt5Configuration.

According to the documentation here: https://docs.aws.amazon.com/cli/latest/reference/iot/update-thing-type.html we should be able to modify the searchable attributes

Regression Issue

  • [ ] Select this option if this issue appears to be a regression.

Expected Behavior

Expected the command to succeed

Current Behavior

It failed with

An error occurred (InvalidRequestException) when calling the UpdateThingType operation: Can only update mqtt5Configuration.

Reproduction Steps

Run the above command

Possible Solution

No response

Additional Information/Context

No response

CLI version used

2.32.6

Environment details (OS name and version, etc.)

Windows 64bit

AleksandarGT avatar Nov 28 '25 10:11 AleksandarGT

Hello @AleksandarGT, thanks for reaching out. I have tried to replicate the above and got the same error from the service:

botocore.parsers - DEBUG - Response body:
b'{"message":"Can only update mqtt5Configuration."}'

As per their documentation, it should allow searchableAttributes. I have reached out to the service team for this issue. I will update as soon as there are any updates from the team. Thank you.

Internal Ref: P351408755

adev-code avatar Dec 08 '25 21:12 adev-code