POST
/
damc
/
workers
/
collective
curl --request POST \
  --url https://dev-api.rootkey.ai/api-v1/damc/workers/collective/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "ownerWallet": "<string>",
  "workers": [
    "<any>"
  ]
}'
{
  "chainId": 80002,
  "transactionHash": "0xdee485f695a79bc8e37a0efcee21c42be0854f1754fe5b52113be70cbfb8d858"
}

Authorizations

x-api-key
string
header
required

Body

application/json
Create a new collective of workers request payload
ownerWallet
string
required

The address of the owner of the collective

workers
any[]
required

The list of workers to be added to the collective

Response

200 - application/json
Collective created successfully

The response is of type any.