Skip to content

Function: storeTemporaryProjectAvatarUsingMultiPart() ​

ts
function storeTemporaryProjectAvatarUsingMultiPart(
   client, 
   parameters, 
   options?
): Promise<unknown>;

Defined in: src/server/api/projects.ts:316

Creates temporary avatar using multipart. The response is sent back as JSON stored in a textarea. This is because the client uses remote iframing to submit avatars using multipart. So we must send them a valid HTML page back from which the client parses the JSON.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ avatar: | AttachmentInput | AttachmentInput[]; projectIdOrKey: string; }-
parameters.avatar| AttachmentInput | AttachmentInput[]-
parameters.projectIdOrKey?stringProject id or project key
options?RequestOptions-

Returns ​

Promise<unknown>