Search documentation
karat

+

K

User Documentation ↗

Get Attachment Property Content By Rid

GET/api/v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}/content

Get the content of an attachment by its RID.

The RID must exist in the attachment array of the property.

Third-party applications using this endpoint via OAuth2 must request the following operation scopes: api:ontologies-read.

Path parameters

ontology
string

The API name of the ontology. To find the API name, use the List ontologies endpoint or check the Ontology Manager.

objectType
string

The API name of the object type. To find the API name, use the List object types endpoint or check the Ontology Manager.

primaryKey
string

The primary key of the object containing the attachment.

property
string

The 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.

attachmentRid
string

The RID of the attachment.

Query parameters

artifactRepository
string
optional

The repository associated with a marketplace installation.

packageName
string
optional

The package name of the generated SDK.

Response body

body
string

Success response.

Examples

Request

Copied!
1 2 3 curl \ -H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/ontologies/palantir/objects/employee/50030/attachments/performance/ri.attachments.main.attachment.bb32154e-e043-4b00-9461-93136ca96b6f/content?artifactRepository=&packageName="