POI 만들기 create-a-poi

POI를 만들 수 있는 POST 방법입니다.

요청

POST https://api-places.adobe.io/places/placesapi/v1/pois

헤더

-H' Content-Type: application/json'
-H 'Authorization: Bearer <TOKEN>'
-H 'x-api-key: <API KEY>'
-H 'x-gw-ims-org-id: <ORGID>'
-H 'Accept-Language: en-US'

본문

{
  "name": "string",
  "description": "string",
  "location": {
    "type": Point",
    "coordinates": [<LONGITUDE>, <LATITUDE>]
  },
  "radius": radius,
  "country": "string",
  "state": "string",
  "city": "string",
  "street": "string",
  "category": "string",
  "icon": "string",
  "color": "string",
  "metadata": {
          "brand": "string",
          "owndership": "string",
          "Color": "string"
  },
  "lib_id": "{libraryID}"
}

샘플 응답

{
    "id": "66e3c0fb-12fe-4af2-863e-16e0e777d777",
    "name": "New POI",
    "description": "18827",
    "location": {
        "type": "Point",
        "coordinates": [
            -123.000507,
            37.698029
        ]
    },
    "radius": 66,
    "country": "US",
    "state": "CA",
    "city": "Small City",
    "street": "1 Island Road",
    "category": "",
    "icon": "",
    "color": "",
    "metadata": {
        "ownership": "LS",
        "brand": "Island station"
    },
    "lib_id": "6efd87bc-c9c4-4ff3-9503-051bfbc81777"
}

CURL 명령

다음 CURL 명령을 사용하여 이 API를 테스트합니다.

curl -X POST 'https://api-places.adobe.io/places/placesapi/v1/pois' -H 'x-api-key: <API KEY>' -H 'Authorization: Bearer <TOKEN>' -H 'x-gw-ims-org-id: <ORGID>' -d '<SINGLEPOIDATA>' -H "Content-Type: application/json"
IMPORTANT
다음 사항을 기억하십시오. <API KEY>, <TOKEN>, ',' 및 <SINGLEPOIDATA> (실제 값 포함)
recommendation-more-help
475fad96-f29f-4dca-a109-68bf0557e825