v18

latestSwagger 2.02026-07-13194165.4 KB
Images

Upload an image in a thread, on behalf of a user.

post/chat/threads/{chatThreadId}/images

Path parameters

chatThreadIdstring required

Thread id where the uploaded image belongs to. (Teams meeting only)

Query parameters

api-versionstring required

Version of API to invoke.

Headers

image-filenamestring

The file name of the image.

Response

Uploaded successfully, the Location header contains the URL for the newly uploaded image.

idstring required

A server-generated image id.

attachmentType'image' | 'file'

The type of attachment.

namestring

The name including file extension type of the attachment.

Example response

{
  "id": "0-eus-d2-fb42e272282ebb6ef76a3aedd1974433",
  "name": "SomeImage.png"
}