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

# POST /api/services/app/Friendship/CreateFriendshipForCurrentTenant

`POST /api/services/app/Friendship/CreateFriendshipForCurrentTenant`

## Request body

- CreateFriendshipForCurrentTenantInput
  - `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)
