Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to modify thread title? #89

Open
Songyu-Wang opened this issue Apr 12, 2021 · 7 comments
Open

Is it possible to modify thread title? #89

Songyu-Wang opened this issue Apr 12, 2021 · 7 comments

Comments

@Songyu-Wang
Copy link

Songyu-Wang commented Apr 12, 2021

Is there a way to do it? I have trouble finding it in the API doc.
Thanks!

@jesseditson
Copy link
Contributor

Yes! The title is inferred from the first H1 in the document, so you can just change that. To do so, I'd reccomend:

  • use /threads/:id to get the thread content

  • you can see the section ID of the title is set as the id field of the first H1:
    image

  • You can then POST to /threads/edit-document to edit the title using the params:

content: the new title
thread_id: the thread ID
section_id: the ID of the title as you retrieved in the last step
location: 4 (meaning replace section content)

More documentation on the edit document endpoint can be found here:

https://quip.com/dev/automation/documentation#edit-a-document

Hopefully this helps!

@Songyu-Wang
Copy link
Author

Songyu-Wang commented Apr 12, 2021

@jesseditson thank you for your reply. Yes, it is true that it can modify the title in the main doc body. However, the title field above the tool bar does not get updated with it. This is the issue I was trying to raise

@jesseditson
Copy link
Contributor

Ah you're right, this is supposed to track but it looks like via the API it doesn't (when I edit it manually it does).

@jesseditson jesseditson reopened this Apr 12, 2021
@jesseditson
Copy link
Contributor

I don't actually see any way in our current code to do this, so I'll leave this open as a feature request!

@Qureshima
Copy link

Hi @jesseditson -san
My name is Keiichi Kureshima.
I was a Solution Engineer and Quip Evangelist at Salesforce Japan until last year, promoting Quip in the Japanese market.

I would like to discuss one thing with you.

There are many cases where Quip document naming rules are in place and search accuracy is low.
In Japanese, it is not common to put spaces between words in a sentence. Therefore, words are often connected to each other to write the title sentence. As a result, search terms are often not found.

To solve this problem, we are developing LiveApps, which can modify title strings in a batch for a list of title search results, but we are unable to do so due to a bug in the API.

Is it possible to raise the priority of addressing this bug?

image

@jesseditson
Copy link
Contributor

Hello there @Qureshima ! I'm sorry to say that I no longer am working at Quip, so I cannot help here! I am also unsure who is the current owner of Live Apps, so I can't help route you either - I'm sorry, good luck!

@Qureshima
Copy link

@jesseditson
Thanks for the reply!
I understood the situation. I'll take another route to check it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants