Assistants

Modifies a thread.

post/threads/{thread_id}

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/threads/{thread_id}
  • Auth
    HTTP bearer

Path parameters

thread_idstring required

The ID of the thread to modify. Only the metadata can be modified.

Request body

metadataMetadata nullable

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, and querying for objects via API or the dashboard.

Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

Response

OK

idstring required

The identifier, which can be referenced in API endpoints.

object'thread' required

The object type, which is always thread.

created_atinteger required

The Unix timestamp (in seconds) for when the thread was created.

metadataMetadata nullable required

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, and querying for objects via API or the dashboard.

Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

Changes

    • info

      added the optional property // to the response with the status

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property type changed from object to no type

    • breaking

      response property metadata list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      the response's property type changed from object to no type for status

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      added subschema #1 subschema #2 to the request property anyOf list

    • info

      request property list-of-types was widened by adding types null to media type application/json

    • info

      added the non-success response with the status

    • info

      added subschema #1 subschema #2 to the response property anyOf list for the response status