Skip to content

EditReel#

Beta version

The functionality is in beta. Features may change and may also work unstably.

The method edits a Reel of the account.

Only the caption and the comments permission can be changed.

The cover of a Reel is not edited and the video file is not replaced.

The method uses the limits on the number of requests per second.

Request#

To edit a Reel, you have to execute a request at:

POST
{{apiUrl}}/waInstance{{idInstance}}/editReel/{{apiTokenInstance}}

For apiUrl, idInstance and apiTokenInstance request parameters, refer to the Before you start section.

Request parameters#

Parameter Type Mandatory Description
postId string Yes The Reel identifier
caption string No* The new caption, up to 2200 characters. Not set - the caption stays as it was
disableComments boolean No* true closes the comments to the Reel, false opens them. Not set - the permission stays as it was

At least one of the caption and disableComments fields must be passed: otherwise the method responds with Validation failed. Details: 'caption' or 'disableComments' is required.

Request body example#

Change the caption of a Reel:#

{
    "postId": "3977953643059237032",
    "caption": "The new caption of the Reel"
}

Close the comments of a Reel:#

{
    "postId": "3977953643059237032",
    "disableComments": true
}

Response#

Response parameters#

Field Type Description
postId string The identifier of the edited Reel - in the same form it was in the request

Response body example#

{
    "postId": "3977953643059237032"
}

EditReel errors#

For a list of errors common to all methods, refer to the Common errors section

HTTP code Error ID Description
400 Bad Request
Validation failed
Validation error
400 Validation failed. Details:
'caption' or 'disableComments' is required
Not a single editable field is passed

Refusals in the notification#

The command is executed through the queue: the method responds with 200 and postId at once. If the command could not be executed, the editPostStatus notification arrives with status = failed, the reason is in the description field:

description Description
post 3977953643059237032 is not a reel The post is not a Reel - for the other types there is EditPost
reel 3977953643059237032 belongs to another account The Reel belongs to another account
not found There is no post with this identifier in Instagram

Request examples#

import requests

url = "{{apiUrl}}/waInstance{{idInstance}}/editReel/{{apiTokenInstance}}"

payload = {
    "postId": "3977953643059237032",
    "caption": "The new caption of the Reel"
}
headers = {'Content-Type': 'application/json'}

response = requests.post(url, json=payload, headers=headers)

print(response.text.encode('utf8'))
curl --location '{{apiUrl}}/waInstance{{idInstance}}/editReel/{{apiTokenInstance}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "postId": "3977953643059237032",
    "caption": "The new caption of the Reel"
}'