PATCH
/
v1
/
resources
/
{resourceId}
curl --request PATCH \
  --url https://api.ctrlplane.dev/api/v1/resources/{resourceId} \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "version": "<string>",
  "kind": "<string>",
  "identifier": "<string>",
  "workspaceId": "<string>",
  "metadata": {},
  "variables": [
    {
      "key": "<string>",
      "value": "<string>",
      "sensitive": true
    }
  ]
}'
{
  "id": "<string>",
  "name": "<string>",
  "workspaceId": "<string>",
  "kind": "<string>",
  "identifier": "<string>",
  "version": "<string>",
  "config": {},
  "metadata": {}
}

Path Parameters

resourceId
string
required

Body

application/json
name
string
version
string
kind
string
identifier
string
workspaceId
string
metadata
object
variables
object[]

Response

200
application/json
Resource updated successfully
id
string
required
name
string
required
workspaceId
string
required
kind
string
required
identifier
string
required
version
string
required
config
object
required
metadata
object
required