Associating a Classification with One or More Assets
Function
This API is used to associate a classification with one or more assets with a specified GUID.
URI
POST /v3/{project_id}/asset/entities/guid/{guid}/classification
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        project_id  | 
      
        Yes  | 
      
        String  | 
      
        Project ID  | 
     
| 
        guid  | 
      
        Yes  | 
      
        String  | 
      
        Asset GUID  | 
     
Request Parameters
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        X-Auth-Token  | 
      
        Yes  | 
      
        String  | 
      
        IAM Token  | 
     
| 
        workspace  | 
      
        Yes  | 
      
        String  | 
      
        DGC workspace ID  | 
     
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        name  | 
      
        Yes  | 
      
        String  | 
      
        Classification name  | 
     
| 
        description  | 
      
        No  | 
      
        String  | 
      
        Classification description  | 
     
| 
        create_user  | 
      
        No  | 
      
        String  | 
      
        User who created the classification  | 
     
| 
        create_time  | 
      
        No  | 
      
        Number  | 
      
        Classification creation time  | 
     
| 
        update_time  | 
      
        No  | 
      
        Number  | 
      
        Classification update time  | 
     
| 
        update_user  | 
      
        No  | 
      
        String  | 
      
        User who updated the classification  | 
     
| 
        guid  | 
      
        No  | 
      
        String  | 
      
        Classification GUID  | 
     
Response Parameters
Status code: 400
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        error_code  | 
      
        String  | 
      
        Error code  | 
     
| 
        error_msg  | 
      
        String  | 
      
        Error message  | 
     
Status code: 401
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        error_code  | 
      
        String  | 
      
        Error code  | 
     
| 
        error_msg  | 
      
        String  | 
      
        Error message  | 
     
Status code: 403
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        error_code  | 
      
        String  | 
      
        Error code  | 
     
| 
        error_msg  | 
      
        String  | 
      
        Error message  | 
     
Status code: 404
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        error_code  | 
      
        String  | 
      
        Error code  | 
     
| 
        error_msg  | 
      
        String  | 
      
        Error message  | 
     
Example Requests
{
  "name" : "Sensitive personal data"
}
 Example Responses
None
Status Codes
| 
        Status Code  | 
      
        Description  | 
     
|---|---|
| 
        200  | 
      
        OK  | 
     
| 
        400  | 
      
        BadRequest  | 
     
| 
        401  | 
      
        Unauthorized  | 
     
| 
        403  | 
      
        Forbidden  | 
     
| 
        404  | 
      
        Not Found  | 
     
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.