GET Entity Attachments Example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!-- GET: /qcbin/rest/domains/DOMAIN_NAME/projects/PROJECT_NAME/defects/4/attachments Accept: application/xml --> <Entities TotalResults="1"> <Entity Type="attachment"> <ChildrenCount> <Value>0</Value> </ChildrenCount> <Fields> <Field Name="last-modified"> <Value>2020-03-12 18:37:12</Value> </Field> <Field Name="vc-cur-ver"> <Value></Value> </Field> <Field Name="name"> <Value>1.txt</Value> </Field> <Field Name="vc-user-name"> <Value></Value> </Field> <Field Name="file-size"> <Value>22</Value> </Field> <Field Name="ref-subtype"> <Value>0</Value> </Field> <Field Name="description"> <Value></Value> </Field> <Field Name="id"> <Value>2</Value> </Field> <Field Name="parent-id"> <Value>4</Value> </Field> <Field Name="ref-type"> <Value>File</Value> </Field> <Field Name="parent-type"> <Value>defect</Value> </Field> </Fields> <RelatedEntities/> </Entity> <singleElementCollection>false</singleElementCollection> </Entities>
GET /qcbin/rest/domains/DOMAIN_NAME/projects/PROJECT_NAME/defects/4/attachments
Accept: application/json
{
"entities": [
{
"Fields": [
{
"Name": "last-modified",
"values": [
{
"value": "2020-03-12 18:37:12"
}
]
},
{
"Name": "vc-cur-ver",
"values": [
{}
]
},
{
"Name": "name",
"values": [
{
"value": "1.txt"
}
]
},
{
"Name": "vc-user-name",
"values": [
{}
]
},
{
"Name": "file-size",
"values": [
{
"value": "22"
}
]
},
{
"Name": "ref-subtype",
"values": [
{
"value": "0"
}
]
},
{
"Name": "description",
"values": [
{}
]
},
{
"Name": "id",
"values": [
{
"value": "2"
}
]
},
{
"Name": "parent-id",
"values": [
{
"value": "4"
}
]
},
{
"Name": "ref-type",
"values": [
{
"value": "File"
}
]
},
{
"Name": "parent-type",
"values": [
{
"value": "defect"
}
]
}
],
"Type": "attachment",
"children-count": 0
}
],
"TotalResults": 1
}

