-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I can get a new object type via the REST API... but I can't create one.
Which means if I have a collection of object types to create at the start of an engagement, I'm going to have to manually add them. Obviously via REST I wouldn't expect to have the full flexibility of the manual wizard, but I would expect to be able to CRUD the basics at least
I would expect the potential request payload to be similar to the Get objectType with the exception of the RID's of all the elements.
Expected Payload
{
"apiName": "employee",
"description": "A full-time or part-time employee of our firm",
"displayName": "Employee",
"status": "ACTIVE",
"primaryKey": "employeeId",
"properties": {
"employeeId": {
"dataType": {
"type": "integer"
},
},
"fullName": {
"dataType": {
"type": "string"
},
},
"office": {
"description": "The unique ID of the employee's primary assigned office",
"dataType": {
"type": "string"
},
},
"startDate": {
"description": "The date the employee was hired (most recently, if they were re-hired)",
"dataType": {
"type": "date"
},
}
},
}
As an example use case, this would allow me to populate an Ontology with a 1:1 mapping of a pre-existing model: by listing the current ontology objects and then creating the missing ones.
Metadata
Metadata
Assignees
Labels
No labels