Updates the package update
Updates the package update
Path Parameters
workspace stringrequired
Workspace to use
name stringrequired
The name of the package update you wish or update
Query Parameters
dryRun string
Set to 'All' to perform a server-side dry run of updating this resource
force string
Set to 'true' to override read-only (has no effect unless used by Wayfinder admin)
owner string
Use an explicit owner for this resource - this must match the owner used on create, if set
apply string
Use server-side apply for this update instead of overwriting the whole object
- application/json
Request Body required
The specification for the package update you are updating
apiVersion string
kind string
metadata
spec
status
Responses
- 200
- 400
- 401
- 403
- 500
Contains the package update definition
- application/json
- Schema
- Example (from schema)
Schema
apiVersion string
kind string
metadata
spec
status
{
"apiVersion": "string",
"kind": "string",
"metadata": {
"annotations": {},
"clusterName": "string",
"creationTimestamp": "string",
"deletionGracePeriodSeconds": 0,
"deletionTimestamp": "string",
"finalizers": [
"string"
],
"generateName": "string",
"generation": 0,
"labels": {},
"managedFields": [
{
"apiVersion": "string",
"fieldsType": "string",
"fieldsV1": "string",
"manager": "string",
"operation": "string",
"subresource": "string",
"time": "string"
}
],
"name": "string",
"namespace": "string",
"ownerReferences": [
{
"apiVersion": "string",
"blockOwnerDeletion": true,
"controller": true,
"kind": "string",
"name": "string",
"uid": "string"
}
],
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"awaitingApproval": true,
"newVersion": "string",
"nextSteps": {
"owner": {
"group": "string",
"kind": "string",
"name": "string",
"namespace": "string",
"version": "string"
}
},
"packageToUpdate": "string",
"preRequisite": {
"owner": {
"group": "string",
"kind": "string",
"name": "string",
"namespace": "string",
"version": "string"
}
}
},
"status": {
"cloudResourcesCreated": true,
"conditions": [
{
"detail": "string",
"lastTransitionTime": "string",
"message": "string",
"name": "string",
"negativePolarity": true,
"observedGeneration": 0,
"reason": "string",
"status": "string",
"type": "string"
}
],
"currentVersion": "string",
"detail": "string",
"estimatedPercentageComplete": 0,
"lastReconcile": {
"generation": 0,
"time": "string"
},
"lastSuccess": {
"generation": 0,
"time": "string"
},
"message": "string",
"obsoleteResources": [
{
"kind": "string",
"name": "string"
}
],
"startTime": "string",
"status": "string",
"wayfinderVersion": "string"
}
}
Validation error of supplied parameters/body
- application/json
- Schema
- Example (from schema)
Schema
code int32
fieldErrors undefined[]
message string
{
"code": 0,
"fieldErrors": [
{
"errCode": "string",
"field": "string",
"message": "string"
}
],
"message": "string"
}
If not authenticated
If authenticated but not authorized
A generic API error containing the cause of the error
- application/json
- Schema
- Example (from schema)
Schema
code int32
detail string
message string
uri string
verb string
{
"code": 0,
"detail": "string",
"message": "string",
"uri": "string",
"verb": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT 'https://<WAYFINDER-API-ENDPOINT>/api/v1alpha1/workspaces/:workspace/packageupdates/:name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"apiVersion": "string",
"kind": "string",
"metadata": {
"annotations": {},
"clusterName": "string",
"creationTimestamp": "string",
"deletionGracePeriodSeconds": 0,
"deletionTimestamp": "string",
"finalizers": [
"string"
],
"generateName": "string",
"generation": 0,
"labels": {},
"managedFields": [
{
"apiVersion": "string",
"fieldsType": "string",
"fieldsV1": "string",
"manager": "string",
"operation": "string",
"subresource": "string",
"time": "string"
}
],
"name": "string",
"namespace": "string",
"ownerReferences": [
{
"apiVersion": "string",
"blockOwnerDeletion": true,
"controller": true,
"kind": "string",
"name": "string",
"uid": "string"
}
],
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"awaitingApproval": true,
"newVersion": "string",
"nextSteps": {
"owner": {
"group": "string",
"kind": "string",
"name": "string",
"namespace": "string",
"version": "string"
}
},
"packageToUpdate": "string",
"preRequisite": {
"owner": {
"group": "string",
"kind": "string",
"name": "string",
"namespace": "string",
"version": "string"
}
}
},
"status": {
"cloudResourcesCreated": true,
"conditions": [
{
"detail": "string",
"lastTransitionTime": "string",
"message": "string",
"name": "string",
"negativePolarity": true,
"observedGeneration": 0,
"reason": "string",
"status": "string",
"type": "string"
}
],
"currentVersion": "string",
"detail": "string",
"estimatedPercentageComplete": 0,
"lastReconcile": {
"generation": 0,
"time": "string"
},
"lastSuccess": {
"generation": 0,
"time": "string"
},
"message": "string",
"obsoleteResources": [
{
"kind": "string",
"name": "string"
}
],
"startTime": "string",
"status": "string",
"wayfinderVersion": "string"
}
}'
ResponseClear