3️⃣ Place UID별 Details 수정

한 프로젝트에 업로드 된 모든 플레이스의 상세 정보를 업데이트하기 위해 다음과 같은 API를 사용합니다.

📍 PUT /open-api/v1/place/{id}

Request Header

Key
Value
Description

api-key

{YOUR_API_Key}

Path Parameter

Key
Value
Description

id

Number

찾고자하는 플레이스의 고유 번호

Request Body

{
"categoryId" : 1,
"placeAreaUid" : "B01",
"imageId" : 13,
"trn" : [
{
"language" : "def",
"description" : "description",
"name" : "place name 1"
}
]
}

Response Body

{
"id": 2,
"placeAreaUid": "B01",
"image": {
"id": 13,
"type": "place",
"image": [
{
"id": 12,
"url": "https://…"
}
]
},
"createDate": "2025-07-16 10:49:52",
"updateDate": "2025-07-16",
"trn": [
{
"language": "def",
"name": "place name 1",
"description": "description"
}
],
"category": "Main category",
"subCategory": "Sub category"
}

cURL

curl --location --request PUT 'https://space.api-freegrow.com/open-api/v1/place/2' \
--header 'api-key: {YOUR_API_KEY}' \
--header 'Content-Type: application/json' \
--data '{
"categoryId" : 1,
"placeAreaUid" : "B01",
"imageId" : 13,
"trn" : [
{
"language" : "def",
"description" : "description",
"name" : "place name 1"
}
]
}’

Last updated