def create_chat(client, actor, title): return client.call( 'POST', '/api/v1/chats', 201, actor=actor, body={'title': title, 'member_ids': [actor['id']]}, schema='Chat', )['json']