Forum Discussion

AngelaIp's avatar
AngelaIp
Ideator I
5 months ago

Editing an item via REST API without item id. Can we specify a WHERE attribute?

Hi community,

I want to edit a custom item in Innovator via REST API. Typically the command looks like this:

PATCH {base url}/Part(’16AA95A80DEB4B56BD8BA9BC509EAF0C’)

My 2nd software that shall do the REST call doesn´t know the target item id. I only have the serial number (item_number) of the target item in Innovator.

For regular AML queries we can use the WHERE attribute to perform these kinds of edit operations.
Is something similar available in the REST API?

An alternative solution would be to do a regular GET request first to get the ID. Or maybe a custom Method that does the edit with a standard AML query.

Any ideas? What would you recommend?

Thanks!

Angela

No RepliesBe the first to reply