Generate Identity Profile Preview
POST {{baseUrl}}/identity-profiles/identity-preview
Use this API to generate a non-persisted preview of the identity object after applying IdentityAttributeConfig
sent in request body.
This API only allows accountAttribute
, reference
and rule
transform types in the IdentityAttributeConfig
sent in the request body.
A token with ORG_ADMIN authority is required to call this API to generate an identity preview.
Request Body
{"identityId"=>"4d0f1558-e420-0aac-a94e-7fc5e30b42de", "identityAttributeConfig"=>[{"enabled"=>true, "attributeTransforms"=>[{"identityAttributeName"=>"email", "transformDefinition"=>{"type"=>"accountAttribute", "attributes"=>{"attributeName"=>"e-mail", "sourceName"=>"MySource", "sourceId"=>"2c9180877a826e68017a8c0b03da1a53"}}}, {"identityAttributeName"=>"email", "transformDefinition"=>{"type"=>"accountAttribute", "attributes"=>{"attributeName"=>"e-mail", "sourceName"=>"MySource", "sourceId"=>"2c9180877a826e68017a8c0b03da1a53"}}}]}, {"enabled"=>true, "attributeTransforms"=>[{"identityAttributeName"=>"email", "transformDefinition"=>{"type"=>"accountAttribute", "attributes"=>{"attributeName"=>"e-mail", "sourceName"=>"MySource", "sourceId"=>"2c9180877a826e68017a8c0b03da1a53"}}}, {"identityAttributeName"=>"email", "transformDefinition"=>{"type"=>"accountAttribute", "attributes"=>{"attributeName"=>"e-mail", "sourceName"=>"MySource", "sourceId"=>"2c9180877a826e68017a8c0b03da1a53"}}}]}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"identity":{"type":"IDENTITY","id":"2c7180a46faadee4016fb4e018c20642","name":"Michael Michaels"},"previewAttributes":[{"name":"email","value":{},"previousValue":{},"errorMessages":[{"locale":"en-US","localeOrigin":"DEFAULT","text":"The request was syntactically correct but its content is semantically invalid."},{"locale":"en-US","localeOrigin":"DEFAULT","text":"The request was syntactically correct but its content is semantically invalid."}]},{"name":"email","value":{},"previousValue":{},"errorMessages":[{"locale":"en-US","localeOrigin":"DEFAULT","text":"The request was syntactically correct but its content is semantically invalid."},{"locale":"en-US","localeOrigin":"DEFAULT","text":"The request was syntactically correct but its content is semantically invalid."}]}]}