Create job

post
Authorizations
Header parameters
AuthorizationstringRequired
Body
chain_idstringOptional

The chain ID.

Responses
200
Ok
application/json
post
POST //multicall/create-job HTTP/1.1
Host: beta.usemoon.ai
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 371

{
  "chain_id": "text",
  "flow": {
    "edges": [
      {
        "id": "text",
        "source": "text",
        "target": "text",
        "label": "text"
      }
    ],
    "nodes": [
      {
        "id": "text",
        "type": "action",
        "data": {
          "userFunctionName": "text",
          "condition": "text",
          "params": null,
          "function": "text",
          "wrapper": "text"
        }
      }
    ]
  },
  "globalVariables": {
    "message": "text"
  },
  "calls": [
    {
      "chainId": "text",
      "params": null,
      "function": "text",
      "wrapper": "text",
      "from": "text"
    }
  ]
}
200

Ok

{
  "success": true,
  "message": "text",
  "data": "text"
}