Chatwoot/app/views/api/v1/accounts/contacts/create.json.jbuilder
2020-08-19 23:25:55 +05:30

9 lines
260 B
Ruby

json.payload do
json.contact do
json.partial! 'api/v1/models/contact.json.jbuilder', resource: @contact, with_contact_inboxes: true
end
json.contact_inbox do
json.inbox @contact_inbox&.inbox
json.source_id @contact_inbox&.source_id
end
end