Back to KustomerUpsert Attachment
Updates requested attachment. Upserts if attachment does not exist.
Any one of the following roles is required for this endpoint:
|Legacy Role|Equivalent Permission Set Role|
|-----|--------|
|org.admin.message.write|org.permission.message.update|
Input
type: object
properties:
parameters:
type: object
properties:
id:
type: string
description: (Required) Attachment ID to update
required:
- id
title: Parameters
data:
type: string
example: >-
"{\n \"name\": \"<string>\",\n \"redacted\": \"<boolean>\",\n
\"contentType\": \"<string>\",\n \"contentLength\": \"<number>\"\n}"
title: Data
Output
type: object
properties:
data:
type: object
properties:
id:
type: string
type:
type: string
attributes:
type: object
properties:
name:
type: string
contentType:
type: string
contentLength:
type: string
uploaded:
type: string
redacted:
type: string
relationships:
type: object
properties:
org:
type: object
properties:
data:
type: object
properties:
id:
type: string
type:
type: string
links:
type: object
properties:
self:
type: string
links:
type: object
properties:
self:
type: string
related:
type: string
meta:
type: object
properties:
upload:
type: object
properties:
url:
type: string
fields:
type: object
properties:
key:
type: string
acl:
type: string
Content-Type:
type: string
X-Amz-Meta-Attachment-Id:
type: string
bucket:
type: string
X-Amz-Algorithm:
type: string
X-Amz-Credential:
type: string
X-Amz-Date:
type: string
Policy:
type: string
X-Amz-Signature:
type: string