Applies an action using the given parameters.
Changes to the Ontology are eventually consistent and may take some time to be visible.
Note that parameter default values are not currently supported by this endpoint.
Third-party applications using this endpoint via OAuth2 must request the
following operation scopes: api:ontologies-read api:ontologies-write
.
string
The API name of the ontology. To find the API name, use the List ontologies endpoint or check the Ontology Manager.
string
The API name of the action to apply. To find the API name for your action, use the List action types endpoint or check the Ontology Manager.
string
The repository associated with a marketplace installation.
string
The package name of the generated SDK.
object
object
string
(enum)Enum values: VALIDATE_ONLY
, VALIDATE_AND_EXECUTE
string
(enum)Enum values: ALL
, NONE
map<ParameterId, DataValue>
string
The unique identifier of the parameter. Parameters are used as inputs when an action or query is applied. Parameters can be viewed and managed in the Ontology Manager.
any
Represents the value of data in the following format. Note that these values can be nested, for example an array of structs.
Type | JSON encoding | Example |
---|---|---|
Array | array | ["alpha", "bravo", "charlie"] |
Attachment | string | "ri.attachments.main.attachment.2f944bae-5851-4204-8615-920c969a9f2e" |
Boolean | boolean | true |
Byte | number | 31 |
Date | ISO 8601 extended local date string | "2021-05-01" |
Decimal | string | "2.718281828" |
Float | number | 3.14159265 |
Double | number | 3.14159265 |
Integer | number | 238940 |
Long | string | "58319870951433" |
Marking | string | "MU" |
Null | null | null |
Object Set | string OR the object set definition | ri.object-set.main.versioned-object-set.h13274m8-23f5-431c-8aee-a4554157c57z |
Ontology Object Reference | JSON encoding of the object's primary key | 10033123 or "EMP1234" |
Set | array | ["alpha", "bravo", "charlie"] |
Short | number | 8739 |
String | string | "Call me Ishmael" |
Struct | JSON object | {"name": "John Doe", "age": 42} |
TwoDimensionalAggregation | JSON object | {"groups": [{"key": "alpha", "value": 100}, {"key": "beta", "value": 101}]} |
ThreeDimensionalAggregation | JSON object | {"groups": [{"key": "NYC", "groups": [{"key": "Engineer", "value" : 100}]}]} |
Timestamp | ISO 8601 extended offset date-time string in UTC zone | "2021-01-04T05:00:00Z" |
object
Success response.
object
string
(enum)Represents the state of a validation.
Enum values: VALID
, INVALID
list<SubmissionCriteriaEvaluation>
object
Contains the status of the submission criteria. Submission criteria are the prerequisites that need to be satisfied before an Action can be applied. These are configured in the Ontology Manager.
string
The message indicating one of the submission criteria was not satisfied. This is configured per submission criteria in the Ontology Manager.
string
(enum)Represents the state of a validation.
Enum values: VALID
, INVALID
map<ParameterId, ParameterEvaluationResult>
string
The unique identifier of the parameter. Parameters are used as inputs when an action or query is applied. Parameters can be viewed and managed in the Ontology Manager.
object
Represents the validity of a parameter against the configured constraints.
string
(enum)Represents the state of a validation.
Enum values: VALID
, INVALID
list<ParameterEvaluatedConstraint>
union
A constraint that an action parameter value must satisfy in order to be considered valid. Constraints can be configured on action parameters in the Ontology Manager. Applicable constraints are determined dynamically based on parameter inputs. Parameter values are evaluated against the final set of constraints.
The type of the constraint.
Type | Description |
---|---|
arraySize | The parameter expects an array of values and the size of the array must fall within the defined range. |
groupMember | The parameter value must be the user id of a member belonging to at least one of the groups defined by the constraint. |
objectPropertyValue | The parameter value must be a property value of an object found within an object set. |
objectQueryResult | The parameter value must be the primary key of an object found within an object set. |
oneOf | The parameter has a manually predefined set of options. |
range | The parameter value must be within the defined range. |
stringLength | The parameter value must have a length within the defined range. |
stringRegexMatch | The parameter value must match a predefined regular expression. |
unevaluable | The parameter cannot be evaluated because it depends on another parameter or object set that can't be evaluated. This can happen when a parameter's allowed values are defined by another parameter that is missing or invalid. |
object
The parameter has a manually predefined set of options.
list<ParameterOption>
object
A possible value for the parameter. This is defined in the Ontology Manager by Actions admins.
string
The display name of the entity.
any
An allowed configured value for a parameter within an action.
boolean
A flag denoting whether custom, user provided values will be considered valid. This is configured via the Allowed "Other" value toggle in the Ontology Manager.
object
The parameter value must be the user id of a member belonging to at least one of the groups defined by the constraint.
object
The parameter value must be a property value of an object found within an object set.
object
The parameter value must be within the defined range.
any
Less than
any
Less than or equal
any
Greater than
any
Greater than or equal
object
The parameter expects an array of values and the size of the array must fall within the defined range.
any
Less than
any
Less than or equal
any
Greater than
any
Greater than or equal
object
The parameter value must be the primary key of an object found within an object set.
object
The parameter value must have a length within the defined range. This range is always inclusive.
any
Less than
any
Less than or equal
any
Greater than
any
Greater than or equal
object
The parameter value must match a predefined regular expression.
string
The regular expression configured in the Ontology Manager.
string
The message indicating that the regular expression was not matched. This is configured per parameter in the Ontology Manager.
object
The parameter cannot be evaluated because it depends on another parameter or object set that can't be evaluated. This can happen when a parameter's allowed values are defined by another parameter that is missing or invalid.
boolean
Represents whether the parameter is a required input to the action.
union
object
list<ObjectEdit>
union
object
any
Represents the value of a property in the following format.
Type | JSON encoding | Example |
---|---|---|
Array | array | ["alpha", "bravo", "charlie"] |
Attachment | JSON encoded AttachmentProperty object | {"rid":"ri.blobster.main.attachment.2f944bae-5851-4204-8615-920c969a9f2e"} |
Boolean | boolean | true |
Byte | number | 31 |
Date | ISO 8601 extended local date string | "2021-05-01" |
Decimal | string | "2.718281828" |
Double | number | 3.14159265 |
Float | number | 3.14159265 |
GeoPoint | geojson | {"type":"Point","coordinates":[102.0,0.5]} |
GeoShape | geojson | {"type":"LineString","coordinates":[[102.0,0.0],[103.0,1.0],[104.0,0.0],[105.0,1.0]]} |
Integer | number | 238940 |
Long | string | "58319870951433" |
Short | number | 8739 |
String | string | "Call me Ishmael" |
Timestamp | ISO 8601 extended offset date-time string in UTC zone | "2021-01-04T05:00:00Z" |
Note that for backwards compatibility, the Boolean, Byte, Double, Float, Integer, and Short types can also be encoded as JSON strings.
string
The name of the object type in the API in camelCase format. To find the API name for your Object Type, use the
List object types
endpoint or check the Ontology Manager.
object
any
Represents the value of a property in the following format.
Type | JSON encoding | Example |
---|---|---|
Array | array | ["alpha", "bravo", "charlie"] |
Attachment | JSON encoded AttachmentProperty object | {"rid":"ri.blobster.main.attachment.2f944bae-5851-4204-8615-920c969a9f2e"} |
Boolean | boolean | true |
Byte | number | 31 |
Date | ISO 8601 extended local date string | "2021-05-01" |
Decimal | string | "2.718281828" |
Double | number | 3.14159265 |
Float | number | 3.14159265 |
GeoPoint | geojson | {"type":"Point","coordinates":[102.0,0.5]} |
GeoShape | geojson | {"type":"LineString","coordinates":[[102.0,0.0],[103.0,1.0],[104.0,0.0],[105.0,1.0]]} |
Integer | number | 238940 |
Long | string | "58319870951433" |
Short | number | 8739 |
String | string | "Call me Ishmael" |
Timestamp | ISO 8601 extended offset date-time string in UTC zone | "2021-01-04T05:00:00Z" |
Note that for backwards compatibility, the Boolean, Byte, Double, Float, Integer, and Short types can also be encoded as JSON strings.
string
The name of the object type in the API in camelCase format. To find the API name for your Object Type, use the
List object types
endpoint or check the Ontology Manager.
object
string
The name of the link type in the API. To find the API name for your Link Type, check the Ontology Manager application.
string
The name of the link type in the API. To find the API name for your Link Type, check the Ontology Manager application.
object
any
Represents the value of a property in the following format.
Type | JSON encoding | Example |
---|---|---|
Array | array | ["alpha", "bravo", "charlie"] |
Attachment | JSON encoded AttachmentProperty object | {"rid":"ri.blobster.main.attachment.2f944bae-5851-4204-8615-920c969a9f2e"} |
Boolean | boolean | true |
Byte | number | 31 |
Date | ISO 8601 extended local date string | "2021-05-01" |
Decimal | string | "2.718281828" |
Double | number | 3.14159265 |
Float | number | 3.14159265 |
GeoPoint | geojson | {"type":"Point","coordinates":[102.0,0.5]} |
GeoShape | geojson | {"type":"LineString","coordinates":[[102.0,0.0],[103.0,1.0],[104.0,0.0],[105.0,1.0]]} |
Integer | number | 238940 |
Long | string | "58319870951433" |
Short | number | 8739 |
String | string | "Call me Ishmael" |
Timestamp | ISO 8601 extended offset date-time string in UTC zone | "2021-01-04T05:00:00Z" |
Note that for backwards compatibility, the Boolean, Byte, Double, Float, Integer, and Short types can also be encoded as JSON strings.
string
The name of the object type in the API in camelCase format. To find the API name for your Object Type, use the
List object types
endpoint or check the Ontology Manager.
object
any
Represents the value of a property in the following format.
Type | JSON encoding | Example |
---|---|---|
Array | array | ["alpha", "bravo", "charlie"] |
Attachment | JSON encoded AttachmentProperty object | {"rid":"ri.blobster.main.attachment.2f944bae-5851-4204-8615-920c969a9f2e"} |
Boolean | boolean | true |
Byte | number | 31 |
Date | ISO 8601 extended local date string | "2021-05-01" |
Decimal | string | "2.718281828" |
Double | number | 3.14159265 |
Float | number | 3.14159265 |
GeoPoint | geojson | {"type":"Point","coordinates":[102.0,0.5]} |
GeoShape | geojson | {"type":"LineString","coordinates":[[102.0,0.0],[103.0,1.0],[104.0,0.0],[105.0,1.0]]} |
Integer | number | 238940 |
Long | string | "58319870951433" |
Short | number | 8739 |
String | string | "Call me Ishmael" |
Timestamp | ISO 8601 extended offset date-time string in UTC zone | "2021-01-04T05:00:00Z" |
Note that for backwards compatibility, the Boolean, Byte, Double, Float, Integer, and Short types can also be encoded as JSON strings.
string
The name of the object type in the API in camelCase format. To find the API name for your Object Type, use the
List object types
endpoint or check the Ontology Manager.
integer
integer
integer
integer
integer
object
list<ObjectTypeApiName>
string
The name of the object type in the API in camelCase format. To find the API name for your Object Type, use the
List object types
endpoint or check the Ontology Manager.
1
2
3
4
5
curl -X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/ontologies/palantir/actions/rename-employee/apply" \
-d '{"parameters":{"id":80060,"newName":"Anna Smith-Doe"}}'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"validation": {
"result": "VALID"
},
"parameters": {
"id": {
"evaluatedConstraints": [],
"result": "VALID",
"required": true
},
"newName": {
"evaluatedConstraints": [],
"result": "VALID",
"required": true
}
}
}