Create Read Update and Delete methods for Attachment
attachment = await client.api.create_attachment( thread_id="<THREAD_UUID>", step_id="<STEP_UUID>" name="my_attachment", content_type="text/plain", content="Hello world", )
attachment = await client.api.update_attachment( id="<ATTACHMENT_UUID>", update_params={ "name": "my_attachment", "content_type": "text/plain", "content": "Hello world", }, )
attachment = await client.api.get_attachment(id="<ATTACHMENT_UUID>")
attachment = await client.api.delete_attachment(id="<ATTACHMENT_UUID>")
Was this page helpful?