Skip to main content

PostProductTypes

You can fetch a list of all your product types or fetch, create, update, delete a specific one using the Ownly API.

Request URL

POST https://api-dev.theownly.io/v1/productTypes/{id}

Headers

NameValueRequired?
Acceptapplication/jsonYes
Content-Typeapplication/jsonYes
AuthorizationBearer{APItoken}Yes

Parameters

NameTypeRequired?Description
nameStringYesProduct Type Name

Example Request


curl -X 'POST' \
'https://api.theownly.io/v1/productTypes/Oo5BqeAm' \
-H 'accept: application/json' \
-H 'Authorization: Bearer {APItoken}' \
-H 'Content-Type: application/json' \
-d '{
"name": "string"
}'

Example Response


{
"id": "Oo5BqeAm",
"name": "string"
}