Upload Cover

This guideline for developer.

Step to create Cover

  1. Get {{sessionId}} from Generate sessionId API.
  2. Set header Authorization with {{sessionId}}.
  3. Set {{portfolioId}} from Create new portfolio API.
  4. Set {{field}} with value cover and {{description}} (optional).
  5. Call Creates a new file API.
  6. Check result from API.
    • If success API will send HTTP code 201 created and {{fileId}} into JSON format.
    • If fail API will show error message.

Step to update Cover

  1. Get {{sessionId}} from Generate sessionId API.
  2. Set header Authorization with {{sessionId}}.
  3. Use {{portfolioId}} from Create new portfolio API and {{fileId}} from Creates a new file API.
  4. Call Update file API.
  5. Check result from API.
    • If success API will send HTTP code 200 successful request and modified time into JSON format.
    • If fail API will show error message.

Step to delete Cover

  1. Get {{sessionId}} from Generate sessionId API.
  2. Set header Authorization with {{sessionId}}.
  3. Use {{portfolioId}} from Create new portfolio API and {{fileId}} from Creates a new file API.
  4. Call Delete file API.
  5. Check result from API.
    • If success API will send HTTP code 200 successful request and deleted time into JSON format.
    • If fail API will show error message.