---
title: "Set Presence"
method: POST
path: "/instance/setPresence/{instance}"
tags: ["Instance Controller"]
---

# Set Presence

`POST /instance/setPresence/{instance}`

## Request

- Base URL: `https://evolution-example`
- URL: `https://evolution-example/instance/setPresence/{instance}`
- Auth: API key in header `apikey`

Deletes instance

## Path parameters

- `instance` string, required

## Request body

- object
  - `presence` 'available' | 'unavailable', required

## Response `200`

Ok

## Other responses

- `404`: Instance not found

## Changes

- **2024-11-25** (v2) `c153448703e5`: 2 breaking, 5 info
  - added the new required request property `presence`
  - removed the media type `application/json` for the response with the status `200`
  - api operation id `setPresence` was added
  - the endpoint scheme security `ApiKeyAuth` was added to the API
  - …3 more
- **2024-09-09** (v2) `0c4620ca5ed5`: 1 warning, 6 info
  - removed the request property `presence`
  - api operation id `setPresence` removed and replaced with ``
  - the endpoint scheme security `ApiKeyAuth` was removed from the API
  - api tag `Instance` added
  - …3 more

[Operation history](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/changes/instance/setPresence/:instance/post.md)

---

[API](https://skmtc.dev/evolution-foundation/apis/evolution-api-3.md) - [All operations](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/llms.txt) - [OpenAPI document](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/revisions/153363ee7f38?raw)
