This endpoint is in preview and may be modified or removed at any time.
To use this endpoint, add preview=true
to the request query parameters.
Create a link. Both sides of the link must exist.
Invalid link type result in an InvalidOntologyTypes error.
string
The primary key of the object from which the links originate (source object).
string
The type of the link that exists between the object and the requested objects.
boolean
Represents a boolean value that restricts an endpoint to preview mode when set to true.
object
A request to create a link to a target object. Requires specifying the security for the link to create, which may be different from one or both sides of the objects being linked.
string
The primary key/unique identifier of an object, useful for interacting with Gotham APIs to load and mutate objects.
object
Security mutation details for a component of an object - property, media, link. Specifying security overrides the system's default security when creating and updating data. If portion markings are specified, permissions may be specified. If portion markings are not specified, permissions must be specified.
This model may evolve over time for other security features.
object
Success response indicating link was created successfully.
1
2
3
4
5
curl -X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/gotham/v1/objects/ri.gotham.111111-0.object-internal.111111/links/com.palantir.link.parentof?preview=true" \
-d '{"targetPrimaryKey":"ri.gotham.111111-0.object-internal.222222","security":{"portionMarkings":["SENSITIVE"]}}'