Przejdź do treści
ShopentlyLearn

Dodaj cechę

Dodaj nową cechę, a następnie uzupełnij dostępne wartości.

POST/api/v1/features

Żądanie cURL

curl --disable --globoff --fail-with-body --silent --show-error \
  --proto '=https' --connect-timeout 5 --max-time 30 \
  --request POST \
  --url https://shop.onshopently.com/api/v1/features \
  --header 'Authorization: Bearer EXAMPLE_ACCESS_TOKEN' \
  --header 'Idempotency-Key: example-create_feature_api_v1_features_post' \
  --header 'Content-Type: application/json' \
  --data-raw '{"name":"Example"}'

Odpowiedź

{
  "data": {
    "deleted": false,
    "id": "example",
    "version": 1
  },
  "meta": {
    "request_id": "example"
  }
}

Wymagane uprawnienia

Uwierzytelnianie
Token dostępu
Dostępne od planu
STANDARD
Uprawnienie klucza
Tworzenie cechcatalog.feature:create