LUCELAATELIER🔔

구매·발주 업무

전체 주소POST https://apis.lucela.kr/v1/lumien/roles/EMP-037/works경로POST /v1/lumien/roles/EMP-037/works
openapi.json
{
  "/v1/lumien/roles/EMP-037/works": {
    "post": {
      "tags": [
        "루미엔 API"
      ],
      "summary": "구매·발주 업무",
      "description": "그 직무에게 업무 한 건 — 담당 → Critic 검증 → 초안",
      "operationId": "post_v1_lumien_roles_emp_037_works",
      "x-lucela-mcp-tool": "lumien_request_emp_037_work",
      "security": [
        {
          "ApiKey": []
        }
      ],
      "x-implementation-status": "SANDBOX_ONLY",
      "x-lucela-billing-unit": "과금 없음",
      "x-lucela-unit-weight": 0,
      "x-lucela-response-fields": "data(job_id · state(queued · running · needs_review · done · failed · requires_approval 중 하나) · requires_approval · op · target · type · result(draft · label · title · body · unverified[] · proposed_effects[] · executed_effects[]) · steps[](stage · agent · role · team · state) · evidence[](claim · source · quote) · critic(verdict · rounds · reviewer) · usage(ms)) · meta(request_id · environment · synthetic · schema_version · warnings · engine_version · product · attribution · notice · catalog_version)",
      "responses": {
        "200": {
          "description": "성공 — 봉투 한 모양",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Envelope"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "data": {
                        "type": "object",
                        "properties": {
                          "job_id": {},
                          "state": {
                            "enum": [
                              "queued",
                              "running",
                              "needs_review",
                              "done",
                              "failed",
                              "requires_approval"
                            ]
                          },
                          "requires_approval": {},
                          "op": {},
                          "target": {},
                          "type": {},
                          "result": {
                            "type": "object",
                            "properties": {
                              "draft": {},
                              "label": {},
                              "title": {},
                              "body": {},
                              "unverified": {
                                "type": "array",
                                "items": {}
                              },
                              "proposed_effects": {
                                "type": "array",
                                "items": {}
                              },
                              "executed_effects": {
                                "type": "array",
                                "items": {}
                              }
                            },
                            "required": [
                              "draft",
                              "label",
                              "title",
                              "body",
                              "unverified",
                              "proposed_effects",
                              "executed_effects"
                            ]
                          },
                          "steps": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "stage": {},
                                "agent": {},
                                "role": {},
                                "team": {},
                                "state": {}
                              },
                              "required": [
                                "stage",
                                "agent",
                                "role",
                                "team",
                                "state"
                              ]
                            }
                          },
                          "evidence": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "claim": {},
                                "source": {},
                                "quote": {}
                              },
                              "required": [
                                "claim",
                                "source",
                                "quote"
                              ]
                            }
                          },
                          "critic": {
                            "type": "object",
                            "properties": {
                              "verdict": {},
                              "rounds": {},
                              "reviewer": {}
                            },
                            "required": [
                              "verdict",
                              "rounds",
                              "reviewer"
                            ]
                          },
                          "usage": {
                            "type": "object",
                            "properties": {
                              "ms": {}
                            },
                            "required": [
                              "ms"
                            ]
                          }
                        },
                        "required": [
                          "job_id",
                          "state",
                          "requires_approval",
                          "op",
                          "target",
                          "type",
                          "result",
                          "steps",
                          "evidence",
                          "critic",
                          "usage"
                        ]
                      },
                      "meta": {
                        "type": "object",
                        "properties": {
                          "request_id": {},
                          "environment": {},
                          "synthetic": {},
                          "schema_version": {},
                          "warnings": {},
                          "engine_version": {},
                          "product": {},
                          "attribution": {},
                          "notice": {},
                          "catalog_version": {}
                        },
                        "required": [
                          "request_id",
                          "environment",
                          "synthetic",
                          "schema_version",
                          "warnings",
                          "engine_version",
                          "product",
                          "attribution",
                          "notice",
                          "catalog_version"
                        ]
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "400": {
          "$ref": "#/components/responses/E400"
        },
        "401": {
          "$ref": "#/components/responses/E401"
        },
        "403": {
          "$ref": "#/components/responses/E403"
        },
        "409": {
          "$ref": "#/components/responses/E409"
        },
        "413": {
          "$ref": "#/components/responses/E413"
        },
        "422": {
          "$ref": "#/components/responses/E422"
        },
        "429": {
          "$ref": "#/components/responses/E429"
        },
        "503": {
          "$ref": "#/components/responses/E503"
        }
      },
      "parameters": [
        {
          "name": "Idempotency-Key",
          "in": "header",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{16,128}$"
          }
        }
      ],
      "requestBody": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "input": {
                  "description": "칸 이름 → 글 · 칸 이름 영소문자 · 숫자 · _"
                },
                "documents[]": {
                  "description": "name · text · 5개 이하"
                },
                "options": {
                  "description": "type(그 직무의 업무 유형 코드) · effects[](mail · approval · publish · payment · register · message · switch · setting — 실행 0 · 요청하면 requires_approval)"
                },
                "fixture_id": {
                  "description": "시험 키 전용 — 시험 키는 이 칸과 client_reference 만 받는다"
                }
              },
              "additionalProperties": false
            }
          }
        }
      }
    }
  }
}