Patch/activate/deactivate trait definition

PATCH {{baseUrl}}/trait-definitions/:systemName

Patch to update trait definition. Activate trait definition by setting active attribute = true. Deactivate trait definition by setting active attribute = false.

Note:User should have delete permission to Activate/Deactivate the trait.

Request Body

{"name"=>"education_trait", "display_name"=>"education_trait_display", "description"=>"activate/deactivate the trait", "default_locale"=>"en", "active"=>true}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"name":"d","system_name":"28lwplku9m5","display_name":"exercitation velit","description":"eu in","namespace":"proident tempor sunt Lorem","namespace_prefix":"anim adipisicing","created_by":{"id":"ae53e4ef-ac36-9ad6-11c8-e22952bc3171","identity_type":"sint commodo","user_profile":{"first_name":"in irure ullamco","last_name":"Excepteur Duis nisi occaecat ad","email":"KokV6@tmnMyQeEIpVVJy.znq"}},"updated_by":{"id":"urn:uuid:1cb555e0-0524-9b86-dfef-a9d61ea0f37b","identity_type":"aliqua Ut","user_profile":{"first_name":"nostrud consequat","last_name":"fugiat labore consequat aliqua","email":"XpZB93C55rCIe@oEjGicW.yuh"}},"create_time":"2004-04-04T19:45:34.046Z","update_time":"1982-07-09T08:16:27.449Z","owner":{"id":"8cc40aaf-8bb7-4dae-84ea-34a206befd73","identity_type":"nisi","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"}}},"default_locale":"sunt esse id aliqua","etag":7593340,"active":true,"id":"3d4cace0-4385-7f0f-7aac-27ea225be06f","acl_id":"5fb440be-0da0-889b-2293-68b88c554baa","_links":{"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"}},"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"}},"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:has-instance":{"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:instance-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"}}}}