Rollback Skill
Rollback to the previous version (cannot be undone).
POST
/
skills
/
{skill_id}
/
rollback
Rollback Skill
const options = {method: 'POST', headers: {'X-Browser-Use-API-Key': '<api-key>'}};
fetch('https://api.browser-use.com/api/v2/skills/{skill_id}/rollback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.browser-use.com/api/v2/skills/{skill_id}/rollback \
--header 'X-Browser-Use-API-Key: <api-key>'import requests
url = "https://api.browser-use.com/api/v2/skills/{skill_id}/rollback"
headers = {"X-Browser-Use-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"categories": [
"search"
],
"domains": [
"<string>"
],
"status": "recording",
"parameters": [
{
"name": "<string>",
"type": "string",
"required": true,
"description": "<string>",
"default": null,
"cookieDomain": "<string>"
}
],
"outputSchema": {},
"isEnabled": true,
"isPublic": true,
"currentVersion": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"slug": "<string>",
"goal": "<string>",
"agentPrompt": "<string>",
"iconUrl": "<string>",
"firstPublishedAt": "2023-11-07T05:31:56Z",
"lastPublishedAt": "2023-11-07T05:31:56Z",
"currentVersionStartedAt": "2023-11-07T05:31:56Z",
"currentVersionFinishedAt": "2023-11-07T05:31:56Z",
"code": "<string>",
"clonedFromSkillId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "Cannot rollback a public skill. Please make the skill private first."
}{
"detail": "Skill not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Response
Successful Response
Skill information returned by the API.
Was this page helpful?
⌘I
Rollback Skill
const options = {method: 'POST', headers: {'X-Browser-Use-API-Key': '<api-key>'}};
fetch('https://api.browser-use.com/api/v2/skills/{skill_id}/rollback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.browser-use.com/api/v2/skills/{skill_id}/rollback \
--header 'X-Browser-Use-API-Key: <api-key>'import requests
url = "https://api.browser-use.com/api/v2/skills/{skill_id}/rollback"
headers = {"X-Browser-Use-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"categories": [
"search"
],
"domains": [
"<string>"
],
"status": "recording",
"parameters": [
{
"name": "<string>",
"type": "string",
"required": true,
"description": "<string>",
"default": null,
"cookieDomain": "<string>"
}
],
"outputSchema": {},
"isEnabled": true,
"isPublic": true,
"currentVersion": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"slug": "<string>",
"goal": "<string>",
"agentPrompt": "<string>",
"iconUrl": "<string>",
"firstPublishedAt": "2023-11-07T05:31:56Z",
"lastPublishedAt": "2023-11-07T05:31:56Z",
"currentVersionStartedAt": "2023-11-07T05:31:56Z",
"currentVersionFinishedAt": "2023-11-07T05:31:56Z",
"code": "<string>",
"clonedFromSkillId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "Cannot rollback a public skill. Please make the skill private first."
}{
"detail": "Skill not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}