Skip to main content
POST
/
component
/
update
Bulk Update Components
curl --request POST \
  --url https://api.draftt.io/v1/component/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": {
    "filter": {
      "technology": {
        "$eq": "k8s"
      }
    }
  },
  "payload": {
    "customTags": {
      "Environment": "production",
      "Team": "backend",
      "CostCenter": null
    }
  }
}
'
{
  "error": {
    "message": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
query
object
required
Examples:
{
"pageSize": 20,
"filter": {
"technology": { "$eq": "k8s" },
"region": { "$eq": "us-east-1" }
}
}
{
"filter": {
"type": { "$eq": "rds-postgres" },
"version": { "$like": "14.*" }
}
}
payload
object
required
Example:
{
"customTags": {
"Environment": "production",
"Team": "backend",
"CostCenter": null
}
}

Response

No Content - Update successful