POST /profile/portfolio

The Specifics

Update or create a portfolio.

 

Note: If you want to add an accreditation to the portfolio you need to use the other endpoints

Request

Send this to us.

Name Type Description Example
id guid If the Id field is not supplied, this will create a new portfolio 1baaf6e4-5288-4b62-9bf5-0942d94ddbdb
title string Title of the portfolio Professional Development 2018
details string Details of the portfolio This is just a sample portfolio for the documentation website

Request Example

{
  "id": "1baaf6e4-5288-4b62-9bf5-0942d94ddbdb",
  "title": "Sample Portfolio",
  "details": "This is just a sample portfolio for the documentation website",
}

 

Possible Responses

Can sometimes send you this:

Status Code Example
400 Bad Request

The title of the portfolio is required. if you don’t provide it the api will return a status code of 400.

200 Ok

The api will return the full details of the portfolio after it has been updated or created.

 

{
  "id": "1baaf6e4-5288-4b62-9bf5-0942d94ddbdb",
  "ownerId": "lucas@accredit.ly",
  "title": "Sample Portfolio",
  "details": "This is just a sample portfolio for the documentation website",
  "security": {
    "keys": [
      {
        "id": "1aec901f-2ef7-4e7b-901b-7c686b58bef3",
        "value": "8c9f131b",
        "label": "Default Sharing Url",
        "enabled": true
      }
    ]
  }
}