Update service config
Update any service field including isActive. To delete a service, first set isActive: false, then call DELETE.
PUT/api/v1/services/:idWallet JWT
For AI agents
Update service config. Critical: to delete a service, first PUT {isActive: false} to deactivate it, then call DELETE. Deleting an active service returns 409.
Requires: Valid JWT (provider who owns the service)
Next: If deactivating before deletion, call DELETE /services/:id after isActive is false
Parameters
idpath · required
Service ID
Generated OpenAPI reference
PUT
/api/v1/services/{id}Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Service ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
[key: string]?any
Response Body
application/json
application/json
application/json
curl -X PUT "https://api-staging.synapse-network.ai/api/v1/services/svc_xyz" \ -H "Content-Type: application/json" \ -d '{ "isActive": false }'{
"service": {
"serviceId": "svc_xyz",
"isActive": false
}
}{
"code": "SERVICE_NOT_FOUND",
"message": "No service with this ID owned by caller"
}{
"code": "SERVICE_ALREADY_DELETED",
"message": "Service is already deleted"
}