---
title: "POST /api/services/app/Friendship/CreateFriendshipWithDifferentTenant"
method: POST
path: "/api/services/app/Friendship/CreateFriendshipWithDifferentTenant"
tags: ["Friendship"]
---

# POST /api/services/app/Friendship/CreateFriendshipWithDifferentTenant

`POST /api/services/app/Friendship/CreateFriendshipWithDifferentTenant`

## Request body

- CreateFriendshipWithDifferentTenantInput
  - `tenancyName` string, required — Required
  - `userName` string, nullable

## Response `200`

Success

- FriendDto
  - `friendUserId` integer
  - `friendTenantId` integer, nullable
  - `friendUserName` string, nullable
  - `friendTenancyName` string, nullable
  - `friendProfilePictureId` string, uuid, nullable
  - `unreadMessageCount` integer
  - `isOnline` boolean
  - `state` 1 | 2

---

[API](https://skmtc.dev/dalieu/apis/portaldalieu-api.md) · [All operations](https://skmtc.dev/dalieu/apis/portaldalieu-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dalieu/portaldalieu-api/revisions/78dcf1621c0e/schema)
