Skip to navigation

Create a contact request attachment

View as Markdown

Create a new attachment for a contact request. Send the file either as a base64 data URI in file or as the URL returned by POST /api/core/private/v1alpha/files/ with private=true in fileUrl; one of the two is required and file wins when both are sent. A public staging URL is refused. The staged file must be one of the supported attachment types and at most 25 MB. originalFilename is the name shown to users.

Authentication

AuthorizationToken

Your API key, sent as Authorization: Token <your API key>

Path parameters

contactIdstringRequiredformat: "uuid"
ID of the contact request

Request

This endpoint expects an object.
originalFilenamestringRequired1-255 characters
filestringOptionalformat: "binary"
fileUrlstringOptionalformat: "uri">=1 character

Response

Successful operation
idstringformat: "uuid"
contactRequestIdstringformat: "uuid"
filestring
originalFilenamestring
uploadedByUserIdstring or null
uploadedByRolestring
canDeleteboolean
createddatetime

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error