Update one existing bag entry (404 if missing)
Authenticate every request with Authorization: Bearer <token> — a JWT or API token.
Download OpenAPI JSONOverview
PUT
/ecosystem/server-bag/{id}/{key}ecosystemUpdate one existing bag entry (404 if missing)
Replace a record in server-bag by id, key.
Auth: bearerAuth — calls run as the authenticated user.
Parameters
- idpathstring
- keypathstring
Request body
application/json · optional
- valueoptionalany
Arbitrary JSON value
- descriptionoptionalstring
Example
{
"value": {},
"description": "string"
}Responses
200
Updated entry
- keystring
- valueany
Arbitrary JSON value
- descriptionstring
- createdAtstring
- updatedAtstring
Example
{
"key": "string",
"value": {},
"description": "string",
"createdAt": "string",
"updatedAt": "string"
}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 PUT "https://api.agenticdeveloperhub.com/ecosystem/server-bag/{id}/{key}" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"value": {},
"description": "string"
}'JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/ecosystem/server-bag/{id}/{key}", {
method: "PUT",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: "{\n \"value\": {},\n \"description\": \"string\"\n}",
});
const data = await res.json();