create a new custom trait definition
POST {{baseUrl}}/trait-definitions
Request Body
{"attributes"=>[{"data_type"=>"string", "display_name"=>"nostrud magna sunt esse", "name"=>"un_18ei", "default_value"=>"ullamco mollit quis sint", "repeating"=>false, "size"=>37457517, "searchable"=>false, "sortable"=>false, "read_only"=>false, "auditable"=>false, "required"=>true, "unique"=>false, "description"=>"dolor irure consectetur sint", "localizable"=>false, "validators"=>[{"type"=>"ad in do deserunt", "operation"=>"dolor ex enim", "params"=>[{"name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}]}, {"type"=>"minim culpa dolor laborum veniam", "operation"=>"nulla dolore commodo", "params"=>[{"name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}]}]}, {"data_type"=>"string", "display_name"=>"culpa Duis mollit aute", "name"=>"fiia", "default_value"=>"mollit minim dolor", "repeating"=>true, "size"=>-68007474, "searchable"=>false, "sortable"=>false, "read_only"=>true, "auditable"=>false, "required"=>false, "unique"=>true, "description"=>"mollit cillum ea dolor", "localizable"=>false, "validators"=>[{"type"=>"Lorem laborum esse", "operation"=>"eiusmod minim velit ipsum", "params"=>[{"name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}]}, {"type"=>"ex velit sit eu", "operation"=>"tempor Ut ", "params"=>[{"name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}]}]}], "display_name"=>"tempor dolor", "name"=>"_rjjckqmtt", "namespace"=>"reprehenderit do incididunt consequat nostr", "description"=>"nulla in est", "indexes"=>[{"columns"=>["Lorem velit", "aliqua ullamco"], "name"=>"8", "unique"=>true}, {"columns"=>["reprehenderit amet", "dolor cupidatat aute laborum"], "name"=>"69f7_h6_2mk", "unique"=>false}], "methods"=>["incididunt nisi", "ullamco Lorem deserunt"], "priority"=>-25245989, "raw_script"=>"ad reprehenderit proident qui", "script_scope"=>"et qui sunt voluptate", "script_scope_spel"=>"dolor incididunt do", "default_locale"=>"eu enim aliqua"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"name":"a","display_name":"ipsum in est laboris enim","description":"ea velit","namespace":"veniam","methods":["tempor dolor","incididunt sunt fugiat"],"priority":-17477256,"script":["consectet","esse dolore qui aliqua"],"script_scope":"tempor enim voluptate ut esse","script_scope_spel":"fugiat consequat","default_locale":"sunt","etag":34086552,"_links":{"self":{"href":"Lorem officia Excepteur sint voluptate"},"edit":{"href":"nisi sunt ut"},"urn:eim:linkrel:namespace":{"href":"est eiusmod exercitation"},"urn:eim:linkrel:attributes":{"href":"ex sed mollit"},"urn:eim:linkrel:index_definitions":{"href":"laborum"}}}