We could create a Account Plan.
We are now trying to migrate an organization using the created plan and it is failing.
We used:
{
"AccountPlanUuid": "302c5982-f063-4fd2-a058-dbd544533623",
"Description": "this is only a test",
"Name": "testorganization",
"Status": "ENABLED",
"Type": "CONSUMER",
"Uuid": "{{GENERATED_GUID}}"
}
We get a error but not sure why we would get this error:
{
"error": {
"code": "ValidationException",
"message": {
"lang": "en",
"value": "The request could not be completed due to data input errors."
},
"detail": {
"errorCode": "483",
"devErrorMessage": "The request could not be completed due to data input errors.",
"userErrorMessage": "The request could not be completed due to data input errors.",
"userErrorKey": "error.validation.entity",
"validationErrors": [
{
"field": "AccountPlanUuid",
"error": "Field's value is invalid or not allowed.",
"key": "error.validation.field.invalid"
}
]
}
}
}
Release : 5.1.2
Confusion between API Account Plan in 5.1 and Rate Limits which used to also be called account plan from older version of portal
Account plans would be under different end point
Example from my organization KingOfTheWorld: the account plan is "accountPlanUuid": "d1c5aa20-5034-477a-9011-116524e5eab4",
https://apim-ssg.<tenant_domain>>9443/tenant502/tenant-admin/1.0/organizations
GET ORG
{
"uuid": "4ffb9ad4-8554-4495-8ca1-ad938fb5cd81",
"name": "KingOfTheWorld",
"description": "KINGS & QUEENS",
"status": "ENABLED",
"accountPlanUuid": "d1c5aa20-5034-477a-9011-116524e5eab4",
"type": "PUBLISHER",
"tags": []
},
GET for the plan under rate-quotas”
https://apim-ssg.<tenant_domain>:9443/tenant502/api-management/1.0/rate-quotas/d1c5aa20-5034-477a-9011-116524e5eab4
{
"uuid": "d1c5aa20-5034-477a-9011-116524e5eab4",
"name": "Gold Account Plan",
"description": "Gold Account Plan no limits",
"assignmentLevel": "ORGANIZATION",
"quota": {
"quota": null,
"interval": null
},
"rateLimit": {
"maxRequestsPerSecond": null,
"maxConcurrency": null,
"windowSizeInSeconds": null
},
"defaultRateQuota": false
},