Create new portfolio

To create the new portfolio

HTTP Request

POST /api/v1/portfolio

Example Header

POST /api/v1/portfolio HTTP/1.1
Host: {{DOMAIN}}
Content-Type: application/json
Accept: application/json
Authorization: {{sessionId}}

Info

Require sessionId
Require Editor, Admin role

Parameters

Parameters Type Require Description Role
memberBarcode string Yes The portfolio's memberBarcode. editor
category string Yes The portfolio's category. editor
projectTitle string Yes The portfolio's projectTitle. editor
aboutProject string The portfolio's aboutProject. editor
projectDetail string Yes The portfolio's projectDetail. editor
projectLanuching string The portfolio's projectLanuching. editor
readyToBuy string The portfolio's readyToBuy. editor
occasion array The portfolio's occasion. editor
referenceStyling string The portfolio's referenceStyling. editor
generalTag array The portfolio's generalTag. editor

Request Body

{
        "memberBarcode": "memberBarcode",
        "category": "TCDC label",
        "relativeCategory" : ["TCDC1 label" , "TCDC2 label", "TCDC3 label"],
        "projectTitle": "projectTitle" ,
        "aboutProject": "aboutProject",
        "projectDetail": "projectDetail",
        "projectLanuching": "projectLanuching",
        "readyToBuy": "readyToBuy",
        "occasion": ["Occasion1", "Occasion2", "Occasion3"],
        "referenceStyling": ["Styling1", "Styling2", "Styling3"],
        "generalTag": ["Tag1", "Tag2", "Tag3"]
}

Response

{
    "portfolioId": "59aab9626ad1da58680a3bbc",
    "memberBarcode": "memberBarcode",
    "category": "TCDC label",
    "relativeCategory" : ["TCDC1 label" , "TCDC2 label", "TCDC3 label"],
    "projectTitle": "projectTitle" ,
    "aboutProject": "aboutProject",
    "projectDetail": "projectDetail",
    "projectLanuching": "projectLanuching",
    "readyToBuy": "readyToBuy",
    "occasion": ["Occasion1", "Occasion2", "Occasion3"],
    "referenceStyling": ["Styling1", "Styling2", "Styling3"],
    "generalTag": ["Tag1", "Tag2", "Tag3"],
    "createdTime": 1504360802
}

Response Code

Code Result Description
201 success The new portfolio was created successfully.
400 error The request is malformed or missing some required parameters.
401 error Unauthorized token or the session_id was expired.
409 error The specified product_id is already taken.