Create uploads

post

/PASService/rest/services/v1/uploads

Creates one or more upload metadata records.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: string
Back to Top

Response

201 Response

successful operation
Back to Top

Examples

This example describes how to create one or more upload metadata records.

Example cURL Command in JSON format

Use the following cURL command to submit a request on the REST resource:

curl -X POST \
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \
     -L "http://server:port/PASService/rest/services/v1/uploads" \
     -d '{"Use this placeholder to plug-in the example request body given below"}'

Example Request Body

The following shows an example of the request body in JSON format:

{
  "uploads": [
    {
      "entityType": "01",
      "relatedId": "f1e2d3c4-b5a6-7890-cdef-0987654321ab",
      "uploadName": "Member Census Upload",
      "uploadTypeCode": "04",
      "effectiveDate": "2026-06-11T10:30:00Z",
      "clientNumber": "CL123456",
      "localFileName": "MemberCensus.xlsx",
      "serverFileName": "2c5fd8f2-b67d-4aaf-9c1d-8f3b6e2d1f45.XLS",
      "documentId": "2c5fd8f2-b67d-4aaf-9c1d-8f3b6e2d1f45",
      "documentUrl": "https://documents.example.com/files/2c5fd8f2-b67d-4aaf-9c1d-8f3b6e2d1f45"
    }
  ]
}

Example Response Body in JSON format

The following shows an example of the response body in JSON format:

{
  "success": true,
  "message": "Upload information processed successfully.",
  "uploads": [
    {
      "documentId": "2c5fd8f2-b67d-4aaf-9c1d-8f3b6e2d1f45",
      "relatedId": "f1e2d3c4-b5a6-7890-cdef-0987654321ab",
      "status": "SUCCESS",
      "documentUrl": "https://documents.example.com/files/2c5fd8f2-b67d-4aaf-9c1d-8f3b6e2d1f45"
    }
  ]
}

Example cURL Command in XML format

Use the following cURL command to submit an XML request on the REST resource:

curl -X POST \
     -H "Accept: application/xml" \
     -H "Content-Type: application/xml" \
     -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \
     -L "http://server:port/PASService/rest/services/v1/uploads" \
     -d '<!-- Use this placeholder to plug in the example XML request body given below -->'

Example Request Body in XML format

The following shows an example of the request body in XML format:

<uploads>
  <upload>
    <entityType>01</entityType>
    <relatedId>f1e2d3c4-b5a6-7890-cdef-0987654321ab</relatedId>
    <uploadName>Member Census Upload</uploadName>
    <uploadTypeCode>04</uploadTypeCode>
    <effectiveDate>2026-06-11T10:30:00Z</effectiveDate>
    <clientNumber>CL123456</clientNumber>
    <localFileName>MemberCensus.xlsx</localFileName>
    <serverFileName>2c5fd8f2-b67d-4aaf-9c1d-8f3b6e2d1f45.XLS</serverFileName>
    <documentId>2c5fd8f2-b67d-4aaf-9c1d-8f3b6e2d1f45</documentId>
    <documentUrl>https://documents.example.com/files/2c5fd8f2-b67d-4aaf-9c1d-8f3b6e2d1f45</documentUrl>
  </upload>
</uploads>

Example Response Body in XML format

The following shows an example of the response body in XML format:

<response>
  <success>true</success>
  <message>Upload created successfully.</message>
  <uploads>
    <upload>
      <documentId>2c5fd8f2-b67d-4aaf-9c1d-8f3b6e2d1f45</documentId>
      <relatedId>f1e2d3c4-b5a6-7890-cdef-0987654321ab</relatedId>
      <status>SUCCESS</status>
      <documentUrl>https://documents.example.com/files/2c5fd8f2-b67d-4aaf-9c1d-8f3b6e2d1f45</documentUrl>
    </upload>
  </uploads>
</response>
Back to Top