Generate Identity Profile Preview

POST {{baseUrl}}/identity-profiles/identity-preview

This generates a non-persisted IdentityDetails object that will represent as the preview of the identities attribute when the given policy's attribute config is applied. A token with ORG_ADMIN authority is required to call this API to generate an identity preview.

Request Body

{"identityId"=>"urn:uuid:7e97fae4-cf7c-5b9d-a645-5a808409bdd6", "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"}}}]}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"identity":{"type":"IDENTITY","id":"2c4180a46faadee4016fb4e018c20626","name":"Robert Robinson"},"previewAttributes":[{"name":"email","value":"email@mail.com","previousValue":"oldEmail@mail.com","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":"email@mail.com","previousValue":"oldEmail@mail.com","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."}]}]}