- HTTP request
 - Path parameters
 - Request body
 - Response body
 - Authorization scopes
 - IAM Permissions
 - Try it!
 
Full name: projects.locations.instances.legacySoarUsers.attachments.upload
Create an Attachment.
HTTP request
Path parameters
| Parameters | |
|---|---|
parent | 
                
                   
 Required. The instance to create the Attachment for. Format: projects/{project}/locations/{location}/instances/{instance}/legacySoarUsers/{legacySoarUser}  | 
              
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
{ "description": string, "media": { object (  | 
                
| Fields | |
|---|---|
description | 
                  
                     
 Required. The Attachment to create.  | 
                
media | 
                  
                     
 The media object to be uploaded.  | 
                
mediaInfo | 
                  
                     
 The media request info.  | 
                
Response body
CreateAttachmentResponse contains the created Attachment.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
{ "name": string, "fileName": string, "description": string, "mimeType": string, "author": string }  | 
                  
| Fields | |
|---|---|
name | 
                    
                       
 Output only. The created attachment.  | 
                  
fileName | 
                    
                       
 Output only. The file name including its file extension, maximum of 256 characters.  | 
                  
description | 
                    
                       
 Output only. The attachment description, maximum of 100 characters.  | 
                  
mimeType | 
                    
                       
 Output only. The attachment mime type, maximum of 100 characters.  | 
                  
author | 
                    
                       
 Output only. The user who uploaded the attachment.  | 
                  
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
chronicle.attachments.update
For more information, see the IAM documentation.