* URL template for an identitylink on a process definition: <i>repository/process-definitions/{0:processDefinitionId}/identitylinks/{1:family}/{2:identityId}</i>
<emphasisrole="bold">Request body (user):</emphasis>
<programlisting>
{
"userId" : "kermit",
"type" : "candidate",
}</programlisting>
</para>
<para>
<emphasisrole="bold">Request body (group):</emphasis>
<programlisting>
{
"groupId" : "sales",
"type" : "candidate",
}</programlisting>
</para>
<para>
<table>
<title>Response codes</title>
<tgroupcols='2'>
<thead>
<row>
<entry>Response code</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>201</entry>
<entry>Indicates the task was found and the identity link was created.</entry>
</row>
<row>
<entry>404</entry>
<entry>Indicates the requested task was not found or the task doesn't have the requested identityLink. The status contains additional information about this error.</entry>