---
title: "Unpublish another member's public profile"
description: "Owner or admin only. The role is read from workspace_members, not from the token. The write is rep_profile_admin_unpublish, which can change published to false and nothing else. Idempotent when already unpublished.\n"
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Rep profiles

`POST /api/rep-profiles/{userId}/unpublish`

Owner or admin only. The role is read from workspace_members, not from the token. The write is rep_profile_admin_unpublish, which can change published to false and nothing else. Idempotent when already unpublished.

## Path parameters

- `userId` (`post/api/rep-profiles/userId/unpublish.path.userId`; string, required)
  - format `uuid`

## Header parameters

- `x-workspace-id` (`post/api/rep-profiles/userId/unpublish.header.x-workspace-id`; string, optional)

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.channelautomation.com/api/rep-profiles/<userId>/unpublish'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/rep-profiles/<userId>/unpublish';
const options = {method: 'POST'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/rep-profiles/<userId>/unpublish"

response = requests.post(url)

print(response.text)
```

## Responses

### 200

The profile is unpublished.

### 403

The caller is not an owner or admin.

### 404

No public profile for that member in this workspace.

### 503

The unpublish function is not available yet.


Source: https://developer.channelautomations.com/api/post-api-rep-profiles-user-id-unpublish/index.md
