POST /product_tutorials/:id/product_tutorial_warnings/create

POST /product_tutorials/{id}/product_tutorial_warnings/create

Create product tutorial warning

Path parameters

  • id integer(int64) Required

    ID of the resource to fetch

Body Required

  • warning string Required

Responses

  • 201

    successful operation

    Hide response attributes Show response attributes array[object]
    • id integer
    • product_tutorial_id integer
    • warning string
    • created_at string(DateTime)
    • updated_at string(DateTime)
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 422

    Unprocessable Entity

  • 500

    Server Error

POST /product_tutorials/{id}/product_tutorial_warnings/create
curl \
 -X POST https://api.cosmily.com/api/v1/product_tutorials/{id}/product_tutorial_warnings/create \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '[{"warning":"string"}]'
Request example
[
  {
    "warning": "string"
  }
]
Request examples
[
  {
    "warning": "string"
  }
]
Response examples (201)
[
  {
    "id": 42,
    "product_tutorial_id": 42,
    "warning": "string",
    "created_at": "string",
    "updated_at": "string"
  }
]
Response examples (201)
[
  {
    "id": 42,
    "product_tutorial_id": 42,
    "warning": "string",
    "created_at": "string",
    "updated_at": "string"
  }
]