[api] implement undertaking detail by pk