Company API bug??

Hi all,

Maybe I'm not doing this right. When I make a call to Apigee to create a company I get back a 404 O.o!?! However the company is actually created!!!

curl -X POST \ https://api.enterprise.apigee.com/v1/organizations/some-org/companies \ -H 'Accept: */*' \ -H 'Accept-Encoding: gzip, deflate' \ -H 'Authorization: Basic <token-here>' \ -H 'Cache-Control: no-cache' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json' \ -H 'Host: api.enterprise.apigee.com' \ -H 'User-Agent: PostmanRuntime/7.17.1' \ -H 'cache-control: no-cache' \ -d '{ "name": "postman-test-3", "displayName": "postman-test-please-delete-me3" }'

My response body:

{ "code": "organizations.keymanagement.AttributeDoesntExist", "message": "Attribute does not exist", "contexts": [] }

I know it's created because when I call it again I get a 400 and I can see it in the UI.

{ "code": "mint.resourceAlreadyExists", "message": "Conflicting class com.apigee.mint.model.Developer already exists", "contexts": [], "cause": { "message": "Conflicting class com.apigee.mint.model.Developer already exists", "contexts": [] } }

Also, I think developer should be company.

0 0 142
0 REPLIES 0