---
title: "Create Contact Image"
method: POST
path: "/orgunit/{orgunitId}/contacts-image"
tags: ["Contact"]
---

# Create Contact Image

`POST /orgunit/{orgunitId}/contacts-image`

## Request

- Base URL: `https://api-docs.ministrybytext.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.ministrybytext.com/orgunit/{orgunitId}/contacts-image`
- Auth: none declared
- TypeScript: <https://skmtc.dev/ministrybytext/apis/pbt-api-documentation/docs/orgunit/:orgunitId/contacts-image/post.ts> (a function with typed inputs; its response is checked against the schema)

This function allows you to upload a file to set as contact image. The response will include imageUrl that need to be passed in add contact api while creating the contact.

## Path parameters

- `orgunitId` string, required

## Request body `multipart/form-data`

- object
  - `file` string, binary

## Response `200`

Success

- ContactImageResponseExternalApiResponseNew
  - `data` ContactImageResponse
    - `imageUrl` string, nullable
  - `appCode` string, nullable
  - `message` string, nullable
  - `isError` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/ministrybytext/apis/pbt-api-documentation.md) - [All operations](https://skmtc.dev/ministrybytext/apis/pbt-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/ministrybytext/apis/pbt-api-documentation/revisions/7d64a1f0b0c3?raw)
