You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GET https://YOUR_RESOURCE_NAME.openai.azure.com/openai/threads/{thread_id}/messages/{message_id}/files?api-version=2024-05-01-preview
143
-
```
144
-
145
-
Returns a list of message files.
146
-
147
-
|Parameter| Type | Required | Description |
148
-
|---|---|---|---|
149
-
|`thread_id`| string | Required | The ID of the thread that the message and files belong to. |
150
-
|`message_id`| string | Required | The ID of the message that the files belong to. |
151
-
152
-
**Query Parameters**
153
-
154
-
|Name | Type | Required | Description |
155
-
|--- |--- |--- |--- |
156
-
|`limit`| integer | Optional - Defaults to 20 |A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.|
157
-
|`order`| string | Optional - Defaults to desc |Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.|
158
-
|`after`| string | Optional | A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.|
159
-
|`before`| string | Optional | A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.|
160
-
161
-
### Returns
162
-
163
-
A list of [message file](#message-file-object) objects
GET https://YOUR_RESOURCE_NAME.openai.azure.com/openai/threads/{thread_id}/messages/{message_id}/files/{file_id}?api-version=2024-05-01-preview
193
+
POST https://YOUR_RESOURCE_NAME.openai.azure.com/openai/threads/{thread_id}/messages/{message_id}?api-version=2024-05-01-preview
251
194
```
252
195
253
-
Retrieves a message file.
196
+
Modifies a message.
254
197
255
198
**Path parameters**
256
199
257
200
|Parameter| Type | Required | Description |
258
201
|---|---|---|---|
259
-
|`thread_id`| string | Required | The ID of the thread, which the message and file belongs to. |
260
-
|`message_id`| string | Required | The ID of the message that the file belongs to. |
261
-
|`file_id`| string | Required | The ID of the file being retrieved. |
202
+
|`thread_id`| string | Required | The ID of the thread to which the message belongs. |
203
+
|`message_id`| string | Required | The ID of the message to modify. |
204
+
205
+
**Request body**
262
206
263
-
**Returns**
207
+
|Parameter| Type | Required | Description |
208
+
|---|---|---|---|
209
+
| metadata | map| Optional | Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.|
|`thread_id`| string | Required | The ID of the thread to which the message belongs. |
312
269
|`message_id`| string | Required | The ID of the message to modify. |
313
270
314
-
**Request body**
315
-
316
-
|Parameter| Type | Required | Description |
317
-
|---|---|---|---|
318
-
| metadata | map| Optional | Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.|
319
-
320
271
### Returns
321
272
322
-
The modified[message](#message-object) object.
273
+
The deletion status of the[message](#message-object) object.
@@ -377,14 +315,3 @@ Represents a message within a thread.
377
315
|`run_id`| string or null |If applicable, the ID of the run associated with the authoring of this message.|
378
316
|`file_ids`| array |A list of file IDs that the assistant should use. Useful for tools like retrieval and code_interpreter that can access files. A maximum of 10 files can be attached to a message.|
379
317
|`metadata`| map |Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.|
380
-
381
-
## Message file object
382
-
383
-
A list of files attached to a message.
384
-
385
-
|Name | Type | Description |
386
-
|--- |--- |--- |
387
-
|`id`| string | The identifier, which can be referenced in API endpoints.|
388
-
|`object`|string| The object type, which is always `thread.message.file`.|
389
-
|`created_at`|integer | The Unix timestamp (in seconds) for when the message file was created.|
390
-
|`message_id`| string | The ID of the message that the File is attached to.|
0 commit comments