Threads, REST: Thread.Update
Update an existing thread.
HTTP request
PATCH https://rest-assistant.api.cloud.yandex.net/assistants/v1/threads/{threadId}
Path parameters
Request message for updating an existing thread.
Field |
Description |
threadId |
string Required field. ID of the thread to update. |
Body parameters
{
"updateMask": "object",
"name": "string",
"description": "string",
"expirationConfig": {
"expirationPolicy": "string",
"ttlDays": "string"
},
"labels": "object"
}
Request message for updating an existing thread.
Field |
Description |
updateMask |
object (field-mask) Required field. A comma-separated names off ALL fields to be updated. If |
name |
string New name for the thread. |
description |
string New description for the thread. |
expirationConfig |
New expiration configuration for the thread. |
labels |
object (map<string, string>) New set of labels for the thread. |
ExpirationConfig
Field |
Description |
expirationPolicy |
enum (ExpirationPolicy)
|
ttlDays |
string (int64) |
Response
HTTP Code: 200 - OK
{
"id": "string",
"folderId": "string",
"name": "string",
"description": "string",
"defaultMessageAuthorId": "string",
"createdBy": "string",
"createdAt": "string",
"updatedBy": "string",
"updatedAt": "string",
"expirationConfig": {
"expirationPolicy": "string",
"ttlDays": "string"
},
"expiresAt": "string",
"labels": "object"
}
Field |
Description |
id |
string Unique identifier of the thread. |
folderId |
string ID of the folder that the thread belongs to. |
name |
string Name of the thread. |
description |
string Description of the thread. |
defaultMessageAuthorId |
string Default user ID that will be used as the author for thread messages if no other author is specified. |
createdBy |
string Identifier of the subject who created this thread. |
createdAt |
string (date-time) Timestamp representing when the thread was created. String in RFC3339 To work with values in this field, use the APIs described in the |
updatedBy |
string Identifier of the subject who last updated this thread. |
updatedAt |
string (date-time) Timestamp representing the last time this thread was updated. String in RFC3339 To work with values in this field, use the APIs described in the |
expirationConfig |
Configuration for the expiration of the thread, defining when and how the thread will expire. |
expiresAt |
string (date-time) Timestamp representing when the thread will expire. String in RFC3339 To work with values in this field, use the APIs described in the |
labels |
object (map<string, string>) Set of key-value pairs that can be used to organize and categorize the thread. |
ExpirationConfig
Field |
Description |
expirationPolicy |
enum (ExpirationPolicy)
|
ttlDays |
string (int64) |