Summary
PUT /environments/{id}/status (EnvironmentsApiService.UpdateEnvironmentStatus) requires a license.id field in the request body when setting status to ACTIVE (restoring from DELETE_PENDING) — documented as required in this case by the PingOne API docs. The generated management.EnvironmentStatus request struct only has a Status field, with no way to supply a license ID.
Details
- Docs: "Update Environment Status" —
license.id is Required* (*Required when setting status to ACTIVE).
management.EnvironmentStatus:
type EnvironmentStatus struct {
Status EnumEnvironmentStatus `json:"status"`
}
- API error observed in practice when calling with only
{"status": "ACTIVE"}: 400 INVALID_VALUE: licenseId is required when setting the status to ACTIVE.
Request
Add a license/licenseId field to EnvironmentStatus (or the request builder), matching the documented API contract, so ACTIVE-restore can be exercised through the SDK.
Summary
PUT /environments/{id}/status(EnvironmentsApiService.UpdateEnvironmentStatus) requires alicense.idfield in the request body when settingstatustoACTIVE(restoring fromDELETE_PENDING) — documented as required in this case by the PingOne API docs. The generatedmanagement.EnvironmentStatusrequest struct only has aStatusfield, with no way to supply a license ID.Details
license.idisRequired*(*Required when settingstatustoACTIVE).management.EnvironmentStatus:{"status": "ACTIVE"}:400 INVALID_VALUE: licenseId is required when setting the status to ACTIVE.Request
Add a
license/licenseIdfield toEnvironmentStatus(or the request builder), matching the documented API contract, so ACTIVE-restore can be exercised through the SDK.