devguard
Asset classesIdApply preset

Bring an asset class up to a built-in preset. Fields the class lacks are added and matching ones are recognized; no field or stored value is removed.

POST
/asset-classes/{id}/apply-preset/

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/asset-classes/string/apply-preset/" \  -H "Content-Type: application/json" \  -d '{    "presetKey": "string"  }'
{  "id": "string",  "slug": "string",  "name": "string",  "description": "string",  "createdAt": "string",  "updatedAt": "string",  "organizationId": "string",  "archivedAt": "string",  "confidentialityRating": 0,  "integrityRating": 0,  "availabilityRating": 0,  "fields": [    {      "id": "string",      "label": "string",      "type": "text",      "required": true,      "options": [        "string"      ],      "placeholder": "string",      "key": "string"    }  ],  "presetKey": "string"}

How is this guide?