Replace Worker
X-API-Key<token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/payment-contracts/string/worker" \ -H "Content-Type: application/json" \ -d '{ "newWorkerId": "string" }'{ "type": "string", "code": "string", "status": 0, "message": "string", "data": { "id": "string", "type": "salary", "payer": "string", "payees": [ { "_id": "string", "proProfil": "string", "role": "worker", "rate": 0, "since": "2019-08-24T14:15:22Z", "until": "2019-08-24T14:15:22Z" } ], "worker": "string", "customDays": 0, "amount": 0, "currency": "string", "paymentDay": 0, "startDate": "2019-08-24T14:15:22Z", "endDate": "2019-08-24T14:15:22Z", "status": "pending", "commissionRate": 0, "accesses": [ { "_id": "string", "targetType": "Profil", "target": "string", "role": "viewer", "grantedBy": "string", "grantedAt": "2019-08-24T14:15:22Z", "revokedAt": "2019-08-24T14:15:22Z", "status": "active" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "schedule": "one_time" }}