API operation · backups group
PATCH
/users/{name}/backup-excludes/{id}
First published 3 Oct 2026
0.1.0Unchanged since publicationLock or unlock a customer's backup exclusion
Who may call it
AdministratorResellerCustomer
Token scope, any of
backupsallAnswers200 OK
Use the id returned by GET /users/{name}/backup-excludes. Set locked to true to prevent the customer from editing or removing the exclusion, or false to let them do so. The API returns 400 if locked is missing and 403 if the caller lacks administrator privileges. The response contains the updated exclusion in exclude.
As a command
Run as root on the serverParameters
namepath ·UsernameRequiredidpath ·integer, 1 or moreRequiredlockedbooleanRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X PATCH "$API/users/alice/backup-excludes/1" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locked": true
}'Response ·
200 OK{
"exclude": {
"created_at": "2026-09-09T10:15:00Z",
"id": 1,
"locked": true,
"path": "public_html/index.php"
}
}Errors
12 errors, each a status and a sentence400--id is required400--user is required400Invalid boolean400Invalid id400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Say --lock or --unlock, one of them400Username '<value>' is reserved400body is missing required field locked401Authentication required403Only an administrator locks or unlocks a row404No such row404Unknown user <user>No error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/patch-users-name-backup-excludes-id/