Update portfolio

When the portfolio was modified, you have to update the changed fields via the API below.

HTTP Request

PUT /api/v1/portfolio/{{portfolioId}}

Example Header

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

Info

Require sessionId
Require Editor, Admin role and 'allowEdit' category
Require Admin role to edit certificateByTCDC, certificateDesc, staffPick

Parameters

Parameters Type Require Description Role
portfolioId string Yes The ID of the portfolio. editor
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
certificateByTCDC array The portfolio's certificateByTCDC. admin
certificateDesc string The portfolio's certificateDesc. admin
staffPick boolean The portfolio's staffPick. admin
command string Yes The portfolio's status. admin

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"],
        "certificateByTCDC" : ["DEBUT Wall", "Social club", "TCDC archrive"],
        "certificateDesc" : "HTML Content",
        "staffPick" : true,
        "command": "publish"
}

Response Data

{
    "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"],
    "modifiedTime" : 1504360802
}

Response Code

Code Result Description
200 success Response to a successful request.
400 error The request is malformed or missing some required parameters.
401 error Unauthorized token or the sessionId was expired.