Overview
POST
/access/items/restoreaccessRestore an item to inherited access (deletes its restriction row)
Create a record in restore.
Auth: bearerAuth — calls run as the authenticated user.
Parameters
- workspacequerystring
Request body
application/json · optional
- featurestring
- itemIdstring
Example
{
"feature": "string",
"itemId": "string"
}Responses
200
Restriction state
- restrictedboolean
Example
{
"restricted": true
}400
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}403
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}404
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X POST "https://api.agenticdeveloperhub.com/access/items/restore" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"feature": "string",
"itemId": "string"
}'JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/access/items/restore", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: "{\n \"feature\": \"string\",\n \"itemId\": \"string\"\n}",
});
const data = await res.json();