Get the metadata of a particular attachment in an attachment list.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:ontologies-read.
stringThe API name or RID of the Ontology. To find the API name or RID, use the List Ontologies endpoint or check the Ontology Manager.
stringThe API name of the object type. To find the API name, use the List object types endpoint or check the Ontology Manager.
stringThe primary key of the object containing the attachment.
stringThe API name of the attachment property. To find the API name for your attachment, check the Ontology Manager or use the Get object type endpoint.
stringThe RID of the attachment.
stringThe package rid of the generated SDK.
stringThe version of the generated SDK.
objectSuccess response.
stringThe unique resource identifier of an attachment.
stringThe name of a File within Foundry. Examples: my-file.txt, my-file.jpg, dataframe.snappy.parquet.
stringThe size of the file or attachment in bytes.
stringThe media type of the file or attachment.
Examples: application/json, application/pdf, application/octet-stream, image/jpeg
1
2
3
curl \
\t-H "Authorization: Bearer $TOKEN" \
	"https://$HOSTNAME/api/v2/ontologies/palantir/objects/employee/50030/attachments/performance/ri.attachments.main.attachment.bb32154e-e043-4b00-9461-93136ca96b6f"1
2
3
4
5
6
{
  "rid": "ri.attachments.main.attachment.bb32154e-e043-4b00-9461-93136ca96b6f",
  "filename": "My Image.jpeg",
  "sizeBytes": 393469,
  "mediaType": "image/jpeg"
}