Search code examples
google-docs-api

Update namedStyles through Google Docs API


I am trying to update the namedStyles through Docs API, but struggling to find a way around it. It seems you can only create namedStyles when creating a new document through the API - batchUpdate doesn't seem to want to touch it.

Am I missing something?


Solution

  • Posting this for documentation purposes.

    As Tanaike said in a comment, currently namedStyles cannot be updated via Docs API, even though this action can be done through Docs UI. There is currently no possible batchUpdate request to achieve this via API.

    You could consider filing a Feature Request in this Issue Tracker component.