Create product
- Print
- PDF
Create product
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in Classic and VPC
Create a product according to the user-defined conditions.
Request
The following describes the request format for the endpoint. The request format is as follows:
Method | URI |
---|---|
POST | /products |
Request headers
For headers common to API Gateway, see API Gateway common request headers.
Request syntax
The request syntax is as follows.
{
"subscriptionCode" : "PROTECTED",
"description" : "description",
"productName" : "productName"
}
Request body
The following describes the request body.
Field | Type | Required | Description |
---|---|---|---|
subscriptionCode | String | Required | Subscription method of the product to create
|
description | String | Optional | Description of the product to create
|
productName | String | Required | Name of the product to create
|
Request example
The following is a sample request.
curl --location --request POST 'https://apigateway.apigw.ntruss.com/api/v1/products' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--data '{
"subscriptionCode" : "PROTECTED",
"description": "test",
"productName" : "product001"
}'
Response
The following describes the response format.
Response syntax
The response syntax is as follows.
{
"product" : {
"invokeId" : "invokeId",
"domainCode" : "domainCode",
"productId" : "productId",
"isPublished" : true,
"modifier" : "modifier",
"permission" : "permission",
"productName" : "productName",
"subscriptionCode" : "PROTECTED",
"isDeleted" : true,
"modTime" : "2000-01-23T04:56:07.000+00:00",
"tenantId" : "tenantId",
"disabled" : true,
"productDescription" : "productDescription",
"actionName" : "actionName",
"zoneCode" : "PUBLIC"
}
}
Response status codes
For response status codes common to API Gateway, see API Gateway response status codes.
Response example
The following is a sample response.
{
"product": {
"productId": "***ghj3***",
"invokeId": "***ghj3***",
"tenantId": "***e230cebc1402ba89b148896951***",
"productName": "product000",
"productDescription": "test",
"isPublished": false,
"subscriptionCode": "PROTECTED",
"modifier": "***d3020-5bb7-11ec-bfb8-246e96591***",
"isDeleted": false,
"modTime": "2024-05-07T01:53:41Z",
"domainCode": "PUB",
"zoneCode": "PUBLIC"
}
}
Was this article helpful?