---
title: "PATCH /v1/{+name}"
method: PATCH
path: "/v1/{+name}"
tags: ["locations"]
---

# PATCH /v1/{+name}

`PATCH /v1/{+name}`

Updates a specific question written by the current user.

## Path parameters

- `name` string, required

## Query parameters

- `updateMask` string

## Request body

- Question — Represents a single question and some of its answers.
  - `totalAnswerCount` integer — Output only. The total number of answers posted for this question.
  - `upvoteCount` integer — Output only. The number of upvotes for the question.
  - `name` string — Immutable. The unique name for the question. locations/*/questions/* This field will be ignored if set during question creation.
  - `topAnswers` Answer[] — Output only. A list of answers to the question, sorted by upvotes. This may not be a complete list of answers depending on the request parameters (answers_per_question)
    - `name` string — Output only. The unique name for the answer locations/*/questions/*/answers/*
    - `createTime` string, google-datetime — Output only. The timestamp for when the answer was written. Only retrieved during ListResponse fetching.
    - `upvoteCount` integer — Output only. The number of upvotes for the answer.
    - `text` string — Required. The text of the answer. It should contain at least one non-whitespace character. The maximum length is 4096 characters.
    - `author` Author — Represents the author of a question or answer
      - `profilePhotoUri` string — The profile photo URI of the user.
      - `type` 'AUTHOR_TYPE_UNSPECIFIED' | 'REGULAR_USER' | 'LOCAL_GUIDE' | 'MERCHANT' — The type of user the author is.
      - `displayName` string — The display name of the user
    - `updateTime` string, google-datetime — Output only. The timestamp for when the answer was last modified.
  - `createTime` string, google-datetime — Output only. The timestamp for when the question was written.
  - `text` string — Required. The text of the question. It should contain at least three words and the total length should be greater than or equal to 10 characters. The maximum length is 4096 characters.
  - `author` Author — Represents the author of a question or answer
    - `profilePhotoUri` string — The profile photo URI of the user.
    - `type` 'AUTHOR_TYPE_UNSPECIFIED' | 'REGULAR_USER' | 'LOCAL_GUIDE' | 'MERCHANT' — The type of user the author is.
    - `displayName` string — The display name of the user
  - `updateTime` string, google-datetime — Output only. The timestamp for when the question was last modified.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/mybusinessqanda.md) · [All operations](https://skmtc.dev/google/apis/mybusinessqanda/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/mybusinessqanda/revisions/b7dbfbfa3801/schema)
