When using the Apigee API to update and appGroup App, the endpoint does not work effectively.
This is a bug with this endpoint and method:
PUT https://apigee.googleapis.com/v1/{name=organizations/*/appgroups/*/apps/*}
Steps to reproduce:
Expected Result:
Actual Result:
Reference documentation: https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.appgroups.apps/upda...
Solved! Go to Solution.
Thank you for reporting this - I'll pass this on to our team for investigation.
Thank you for reporting this - I'll pass this on to our team for investigation.
Hello @davidfreeman, thank you for your patience - I've received the following from Engineering
There are two distinct actions here in the Update API:
Would you be able to try these actions separately and see if you are still seeing the same issues? It's not optimal that the API design cannot handle both, and at minimum the documentation should be updated, but I'd like to confirm the reproducible functionality first.
I have tried this, and was partially successful:
curl --location --request PUT 'https://apigee.googleapis.com/v1/organizations/apigeex-sonrai/appgroups/my-app-group/apps/test_with_revoked?action=revoke' \
--header 'Authorization: Bearer --redacted--' \
--header 'Content-Type: application/octet-stream'
curl --location --request PUT 'https://apigee.googleapis.com/v1/organizations/apigeex-sonrai/appgroups/8d8d7c43-e3a4-4de1-8306-17d7953aa490/apps/test_with_products' \
--header 'Authorization: Bearer --redacted--' \
--header 'Content-Type: application/json' \
--data '{
"appId": "07f37acc-a0b2-42bf-bdba-870f15b13599",
"attributes": [
{
"name": "DisplayName",
"value": "test-app-17-juln-24"
},
{
"name": "Notes",
"value": "Test app for testing test stuff"
}
],
"createdAt": "1721004294589",
"credentials": [
],
"lastModifiedAt": "1721004294589",
"name": "test_with_revoked",
"status": "revoked",
"appGroup": "my-app-group"
}'
To remove the credentials from the AppGroup App I instead used this endpoint successfully:
https://apigee.googleapis.com/v1/organizations/:org/appgroups/:appgroup/apps/:app/keys/:key
The still leaves the challenges for updating any other attribute on an AppGroup App though.