SymetryML Documentation
Federated learning

Add PSR contract

Replace this federation's PSR contract with the given list of rule strings.

POST
/{user}/fedml/{project}/addContract

Replace this federation's PSR contract with the given list of rule strings.

Authorization

SymetryMLAuth
AuthorizationBearer <token>

HMAC-SHA256 signature-based authentication: requests are signed with your secret key and sent with the Customer-ID, Sym-date, Authorization, Content-MD5 and sym-version headers. See SymetryML REST API Security for the signature algorithm and a complete example.

In: header

Path Parameters

user*string

User/Customer identifier

project*string

Project identifier

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/c1/fedml/nbra_prj_iris/addContract" \  -H "Content-Type: application/json" \  -d '{    "values": [      "COUNT(sepal_length) >= 0",      "COUNT(Iris_setosa) >= 0"    ]  }'
{  "statusCode": 200,  "statusString": "OK",  "values": {}}

{  "statusCode": 500,  "statusString": "Error Invalid project name / or not logged in.",  "values": {}}