User Tools

Site Tools


api:porting:upload-document

API : Porting Upload Document

Introduction

This request is used to upload a power of attorney document to a porting using multipart/form-data post.

Request

URL https://api.telecomx.dk/porting/PORTING-ID/document/FILE-ID
Method POST
Access level OWNER, RESELLER, RESELLER_ADMIN with PORTING feature or ADMIN.
Param PORTING-ID Id of the porting.
Body file Binary file to upload, must be of type PDF, PNG or JPG.

Query example

N/A

Response

Property Type Description
success Boolean True on success.
document Object Metadata about the document.
document._id Id Id of the document.
document.filename String Filename.
document.size Number Size of the file in bytes.

Example

{
  success: true,
  document: {
    _id: '12345678901234567890BBBB',
    filename: 'porting.pdf',
    size: 147895
  }
}

Errors

Error code Message Description
400 bad_request Id not found in request URI
404 file The file was missing or invalid
404 file Filetype must be PDF, PNG or JPG
403 stage Porting is not at the right stage to allow documents to be added
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/porting/upload-document.txt · Last modified: 2026/05/21 20:31 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki