상태 전환 요청
전체 주소
POST https:/ / apis.lucela.kr/ v1/ direct/ listings/ {listing_id}/ transitions경로POST / v1/ direct/ listings/ {listing_id}/ transitions{
"/v1/direct/listings/{listing_id}/transitions": {
"post": {
"tags": [
"다이렉트 API"
],
"summary": "상태 전환 요청",
"description": "SUBMIT = 검토 요청 · PUBLISH 는 막힘(403)",
"operationId": "post_v1_direct_listings_listing_id_transitions",
"security": [
{
"ApiKey": [],
"DirectDelegation": []
}
],
"x-implementation-status": "AVAILABLE",
"x-lucela-billing-unit": "과금 없음",
"x-lucela-unit-weight": 0,
"x-lucela-response-fields": "id · state · published · flags · warnings · publishMode",
"x-lucela-direct": true,
"x-lucela-direct-command": "transitionDirectListing",
"responses": {
"200": {
"description": "성공 — 다이렉트 몸통 그대로",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"id": {},
"state": {},
"published": {},
"flags": {},
"warnings": {},
"publishMode": {}
}
}
}
}
},
"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": {
"action": {
"description": "SUBMIT · PUBLISH"
},
"noticeAck": {
"description": "등록 확인"
}
},
"required": [
"action"
],
"additionalProperties": false
}
}
}
}
}
}
}