Skip to main content
Version: v0.5

Upgrade for a resource of an environment that belongs to a project.

Upgrade for a resource.

Upgrade for a resource of an environment that belongs to a project.

Path Parameters
    project string required
    environment string required
    resource string required
Request Body required
    attributes object
    property name* byte
    changeComment string
    computedAttributes object
    property name* byte
    description string
    draft boolean

    Default value: false

    endpoints object[]
  • Array [
  • name string required
    url string required
  • ]
  • labels object
    property name* string
    resourceDefinitionMatchingRule object
    id string
    name string
    reuseAttributes boolean

    Default value: false

    template object
    id string
    name string
    project object
    id string
    name string
    version string
    type string
Responses

OK


Schema
    message string
    status integer

    Default value: 200

    statusText string

    Default value: OK

PUT /v1/projects/:project/environments/:environment/resources/:resource/upgrade

Authorization

name: BasicAuthtype: httpdescription: Basic Authentication, in form of base64(<username>:<password>), the password must be a valid Seal API token.in: headerscheme: basic

Request

Security Scheme
Username
Password
project — path required
environment — path required
resource — path required
Body required
{
"attributes": {},
"changeComment": "string",
"computedAttributes": {},
"description": "string",
"draft": false,
"endpoints": [
{
"name": "string",
"url": "string"
}
],
"labels": {},
"resourceDefinitionMatchingRule": {
"id": "string",
"name": "string"
},
"reuseAttributes": false,
"template": {
"id": "string",
"name": "string",
"project": {
"id": "string",
"name": "string"
},
"version": "string"
},
"type": "string"
}
curl / cURL
curl -L -X PUT 'https://seal-io.github.io/v1/projects/:project/environments/:environment/resources/:resource/upgrade' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"attributes": {},
"changeComment": "string",
"computedAttributes": {},
"description": "string",
"draft": false,
"endpoints": [
{
"name": "string",
"url": "string"
}
],
"labels": {},
"resourceDefinitionMatchingRule": {
"id": "string",
"name": "string"
},
"reuseAttributes": false,
"template": {
"id": "string",
"name": "string",
"project": {
"id": "string",
"name": "string"
},
"version": "string"
},
"type": "string"
}'