GraphQL Response "The specified location could not be found.",

https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/inventorySetQuantities I followed this example to adjust the variant’s inventory, but why does the response parameter say “The specified location could not be found”? The locationId value I passed seems to be correct, what’s the reason? Is it because the location was created using the Rest API?