LUCELAATELIER🔔

매물 초안 수정

전체 주소PATCH https://apis.lucela.kr/v1/direct/listings/{listing_id}/draft경로PATCH /v1/direct/listings/{listing_id}/draft
openapi.json
{
  "/v1/direct/listings/{listing_id}/draft": {
    "patch": {
      "tags": [
        "다이렉트 API"
      ],
      "summary": "매물 초안 수정",
      "description": "초안 · 반려 매물의 글 칸을 합쳐 저장",
      "operationId": "patch_v1_direct_listings_listing_id_draft",
      "security": [
        {
          "ApiKey": [],
          "DirectDelegation": []
        }
      ],
      "x-implementation-status": "AVAILABLE",
      "x-lucela-billing-unit": "과금 없음",
      "x-lucela-unit-weight": 0,
      "x-lucela-response-fields": "id · kind · state · revision · title · description · condition · tradeMode · price · priceNegotiable · region · photos[] · product · badgeStatus · verifications[] · pending · workspaceId · version · contactDisclosure · noticeAcknowledged — 그 밖 칸",
      "x-lucela-direct": true,
      "x-lucela-direct-command": "updateListingDraft",
      "responses": {
        "200": {
          "description": "성공 — 다이렉트 몸통 그대로",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {},
                  "kind": {},
                  "state": {},
                  "revision": {},
                  "title": {},
                  "description": {},
                  "condition": {},
                  "tradeMode": {},
                  "price": {},
                  "priceNegotiable": {},
                  "region": {},
                  "photos": {
                    "type": "array",
                    "items": {}
                  },
                  "product": {},
                  "badgeStatus": {},
                  "verifications": {
                    "type": "array",
                    "items": {}
                  },
                  "pending": {},
                  "workspaceId": {},
                  "version": {},
                  "contactDisclosure": {},
                  "noticeAcknowledged": {}
                },
                "additionalProperties": true
              }
            }
          }
        },
        "401": {
          "$ref": "#/components/responses/E401"
        },
        "403": {
          "$ref": "#/components/responses/E403"
        },
        "413": {
          "$ref": "#/components/responses/E413"
        },
        "429": {
          "$ref": "#/components/responses/E429"
        },
        "503": {
          "$ref": "#/components/responses/E503"
        }
      },
      "parameters": [
        {
          "name": "listing_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "If-Match",
          "in": "header",
          "required": false,
          "schema": {
            "type": "string"
          },
          "description": "상품 내용 = 조회 응답 ETag · 그 밖 = 매물 version"
        }
      ],
      "requestBody": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "domainPackId": {},
                "categoryCode": {},
                "familyCode": {},
                "transferForm": {},
                "tradeStructure": {},
                "radiationGenerator": {},
                "marketItemId": {},
                "title": {},
                "description": {},
                "conditionCode": {},
                "tradeMode": {},
                "price": {
                  "description": "원"
                },
                "priceNegotiable": {},
                "exchangeWants": {},
                "handover": {},
                "region": {},
                "visibility": {},
                "validDays": {},
                "components": {},
                "defects": {},
                "defectsNone": {},
                "acquiredOn": {},
                "brand": {},
                "model": {},
                "serialNumber": {},
                "details": {},
                "noticeAck": {}
              },
              "additionalProperties": false
            }
          }
        }
      }
    }
  }
}