ReferenceV1
Create Attachment
Create a chat attachment from an existing artifact. The artifact must already exist and be owned by the same tenant.
Path Parameters
thread_id*string
Format
uuidQuery Parameters
artifact_id*string
Format
uuidHeader Parameters
authorization?|
X-API-Key?|
Cookie Parameters
vai_token?|
Request Body
application/json
messageId?|
Response Body
application/json
application/json
curl -X POST "https://loading/api/v1/chat/threads/497f6eca-6276-4993-bfeb-53cbbbba6f08/attachments?artifact_id=497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{
"artifactId": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"id": "string",
"ingestionStatus": "none",
"messageId": "string",
"mimeType": "string",
"originalFilename": "string",
"scope": "thread",
"sizeBytes": 0,
"threadId": "string",
"updatedAt": "2019-08-24T14:15:22Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}