ApiRegistryVersions
Deprecate a published version
Marks the version as deprecated with an optional reason. The version stays published and pullable — deprecation is advice to consumers, not a removal. Requires write access. Idempotent.
Marks the version as deprecated with an optional reason. The version stays published and pullable — deprecation is advice to consumers, not a removal. Requires write access. Idempotent.
Authorization
bearerAuth AuthorizationBearer <token>
Firebase ID token (Google sign-in, etc.)
In: header
Path Parameters
owner*string
project*string
version*string
Semantic version string (e.g. 1.0.0)
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/projects/string/string/versions/string/deprecate" \ -H "Content-Type: application/json" \ -d '{}'{ "version": { "id": "string", "project_id": "string", "version": "string", "spec_digest": "string", "status": "string", "release_notes": "string", "published_by": "string", "published_at": "2019-08-24T14:15:22Z", "deprecated": true, "deprecated_at": "2019-08-24T14:15:22Z", "deprecation_reason": "string" }}{ "error": { "code": "string", "message": "string" }}