Skip to end of banner
Go to start of banner

Delete Poll

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Deletes a poll.

  • Deletes the poll using the provided poll ID.

  • The response returns code 200 if the poll deletion was successful else error messages are generated. See Error codes.

The operation uses basic authentication.

Resource URL

DELETE Method on <ConfluenceBaseURL>/rest/polls/1.0/poll/{pollguid}

ConfluenceBaseURL is the URL of your Confluence instance.

Parameters

The url parameter should be replaced with guid of the poll.

  • pollguid - guid of the poll *

Example request URL

 Sample request URL for delete

<ConfluenceBaseURL>/rest/polls/1.0/poll/f2945cb488a341198bb7ecf173f5db07

Example response

 Sample response after successful execution of request

{
"result": "ok",
"guid": "f2945cb488a341198bb7ecf173f5db07",
"status": "200"
}

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’.

  • No labels