---
title: "Close poll"
canonical: "https://support.appfire.com/space/POLL/151847050/Close%20poll"
format: markdown
---
> Macro (aura-html)

Closes the given poll. 

- Closes the poll with the given poll ID.
- The response returns code 200 if the poll closure was successful else error messages are generated. See [Error codes](https://mohamicorp.atlassian.net/wiki/spaces/POLL/pages/2902622215).

> ⚠️ The operation uses basic authentication.

# Resource URL

***POST**** Method on <ConfluenceBaseURL>/rest/polls/1.0/poll/{pollguid}/close*

*ConfluenceBaseURL* is the URL of your Confluence instance.

# Parameters

The URL parameter must be replaced with GUID of the poll. 

- *pollguid - GUID of the poll* <span style="color: #ff5630">*</span>

# Example request URL

<details>
<summary>Sample request URL for close</summary>

`<ConfluenceBaseURL>/rest/polls/1.0/poll/ffb270e1aa0b4ba7bca4507503981efd/close`
</details>

# Example response

<details>
<summary>Sample response after successful execution of request</summary>

`{`  
`"result": "ok",`  
`"guid": "ffb270e1aa0b4ba7bca4507503981efd",`  
`"status": "200"`  
`}`
</details>

# Error codes

| **Code** | **Cause of error** | **Message displayed** |
| --- | --- | --- |
| 404 | Poll with given poll GUID is not found. | Operation failed with error poll not found. |
| 403 | User is not permitted to perform a particular operation. | Operation failed with error not allowed. |
| 401 | Invalid user credentials. | Operation failed with error unauthorized. |