#Modify message

1 messages · Page 1 of 1 (latest)

lucid wave
#

allow modify content or just metadata only?

POST
https://api.openai.com/v1/threads/{thread_id}/messages/{message_id}
subtle acornBOT
#

Hi @lucid wave. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the information provided in the extracts, the modifyMessage method in the OpenAI API allows you to modify a message. However, it appears that you can only modify the metadata of the message, not the content. The metadata is a set of 16 key-value pairs that can be attached to an object, which can be useful for storing additional information about the object in a structured format.

Here is the relevant part of the request body for the modifyMessage method:

{'required': True, 'content': {'application/json': {'schema': {'type': 'object', 'additionalProperties': False, 'properties': {'metadata': {'description': '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 maxium of 512 characters long.\n', 'type': 'object', 'x-oaiTypeLabel': 'map', 'nullable': True}}}}}}

This suggests that the metadata field is the only one that can be modified. The content field, which would contain the actual content of the message, is not mentioned as being modifiable.

For more detailed information, you may want to refer to the OpenAI API documentation (https://platform.openai.com/docs/api-reference).

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: