Create a new custom type definition for the given category
POST {{baseUrl}}/type-definitions/:category?default_locale=en
Create a new custom type definition
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
default_locale | string |
Request Body
{"name"=>"campaign_folder", "display_name"=>"Campaign Folder", "description"=>"This is Campaign folder type", "active"=>true, "attributes"=>[{"name"=>"campaign", "display_name"=>"Campaign", "data_type"=>"string", "size"=>64, "validators"=>[{"type"=>"length_validator", "operation"=>"Create", "params"=>[{"name"=>"min", "value"=>"1"}]}, {"type"=>"length_validator", "operation"=>"Update", "params"=>[{"name"=>"min", "value"=>"1"}]}]}, {"name"=>"classification", "display_name"=>"classification", "data_type"=>"string", "size"=>64, "validators"=>[{"type"=>"length_validator", "operation"=>"Create", "params"=>[{"name"=>"min", "value"=>"1"}]}, {"type"=>"length_validator", "operation"=>"Update", "params"=>[{"name"=>"min", "value"=>"1"}]}]}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"name":"s41_eo","display_name":"cupidatat aute voluptate","description":"minim dolor sit ullamco labori","namespace":"nulla sed amet","namespace_prefix":"fugiat an","system_name":"do ut non aliqua nulla","category":"Ut ex laborum","version":30839917,"etag":-48985722,"parent":"quis dolor","parent_display_name":"exercitation nulla amet e","raw_script":"pariatur ut cillum","default_locale":"in volu","non_auditable_actions":["commodo magna sit qui in","sunt cupidatat tempor laborum"],"retention_policy_ids":["adipisicing deserunt","ullamco amet anim"],"rel_source_type":"eiusmod magna","rel_target_type":"minim tempor Excepteur laborum","rel_cardinality":"ONE_TO_MANY","rel_direction":"SOURCE_TO_TARGET","rel_integrity_type":0,"rel_source_name":"labore Duis","rel_target_name":"sit incididunt non","rel_source_display_name":"Ut id nostrud quis pariatur","rel_target_display_name":"laboris sit","created_by":{"id":"49788e2f-c920-d8c2-6666-4815adacff09","identity_type":"sed ut amet mollit","user_profile":{"first_name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"last_name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"email":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}},"create_time":"1946-07-18T06:59:45.088Z","update_time":"2002-10-25T14:08:02.435Z","updated_by":{"id":"urn:uuid:d507e740-5fed-1503-112d-1df62e5924f6","identity_type":"in pariatur exercitation velit","user_profile":{"first_name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"last_name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"email":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}},"active":false,"acl_id":"urn:uuid:d1cbc5a0-2bfc-1306-ac33-5d2aba9367e9","_links":{"self":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"edit":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"parent":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"urn:eim:linkrel:namespace":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"urn:eim:linkrel:attributes":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"urn:eim:linkrel:index-definitions":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"urn:eim:linkrel:type-category":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"urn:eim:linkrel:required-traits":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"urn:eim:linkrel:attributes-all":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"urn:eim:linkrel:instances":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"urn:eim:linkrel:has-instance":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"urn:eim:linkrel:history":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"urn:eim:linkrel:datatype-definitions":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"urn:eim:linkrel:acl":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"urn:eim:linkrel:delete":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"urn:eim:linkrel:type-policy":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"urn:eim:linkrel:templates":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}}