Create Application Supporting Docs

post

/appstore/publisher/v1/applications/{listingVersionId}/supportingdocs

Creates supporting documents for the an application with the specified ID.

Request

Supported Media Types
Path Parameters
Body ()
Upload the required resources and provide required information.
Root Schema : FormDataMultiPart
Type: object
Show Source
Nested Schema : bodyParts
Type: array
Show Source
Nested Schema : ContentDisposition
Type: object
Show Source
Nested Schema : entity
Type: object
Nested Schema : fields
Type: object
Additional Properties Allowed
Show Source
Nested Schema : headers
Type: object
Additional Properties Allowed
Show Source
Nested Schema : MediaType
Type: object
Show Source
Nested Schema : parameterizedHeaders
Type: object
Additional Properties Allowed
Show Source
Nested Schema : MultiPart
Type: object
Show Source
Nested Schema : Providers
Type: object
Nested Schema : BodyPart
Type: object
Show Source
Nested Schema : entity
Type: object
Nested Schema : headers
Type: object
Additional Properties Allowed
Show Source
Nested Schema : parameterizedHeaders
Type: object
Additional Properties Allowed
Show Source
Nested Schema : additionalProperties
Type: array
Show Source
Nested Schema : additionalProperties
Type: array
Show Source
Nested Schema : ParameterizedHeader
Type: object
Show Source
Nested Schema : parameters
Type: object
Additional Properties Allowed
Show Source
Nested Schema : parameters
Type: object
Additional Properties Allowed
Show Source
Nested Schema : additionalProperties
Type: array
Show Source
Nested Schema : FormDataBodyPart
Type: object
Show Source
Nested Schema : entity
Type: object
Nested Schema : FormDataContentDisposition
Type: object
Show Source
Nested Schema : headers
Type: object
Additional Properties Allowed
Show Source
Nested Schema : parameterizedHeaders
Type: object
Additional Properties Allowed
Show Source
Nested Schema : parameters
Type: object
Additional Properties Allowed
Show Source
Nested Schema : additionalProperties
Type: array
Show Source
Nested Schema : additionalProperties
Type: array
Show Source
Nested Schema : additionalProperties
Type: array
Show Source
Nested Schema : parameters
Type: object
Additional Properties Allowed
Show Source
Nested Schema : additionalProperties
Type: array
Show Source
Nested Schema : bodyParts
Type: array
Show Source
Nested Schema : entity
Type: object
Nested Schema : headers
Type: object
Additional Properties Allowed
Show Source
Nested Schema : parameterizedHeaders
Type: object
Additional Properties Allowed
Show Source
Nested Schema : additionalProperties
Type: array
Show Source
Nested Schema : additionalProperties
Type: array
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful Operation
Body ()
Root Schema : collection
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : acknowledgement
Type: object
Show Source

400 Response

Bad Request

401 Response

Not Authorized

404 Response

Entity Not Found

500 Response

System Error
Back to Top

Examples

The following example uploads the supporting documents for an existing application belonging to a partner, by submitting a POST request on the REST resource using cURL.

cURL Example

curl -X POST -H "X-Oracle-UserId: partner-email" -H "Authorization: Bearer Access-token" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW " -F "file=@file-path" -F "file=@file-path" -F "json=JSON-data-as-shown-in-following-example"  "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/applications/3450697/supportingdocs"

Request Header

X-Oracle-UserId: fname.lname@oracle.com 
Authorization: Bearer Access-token 

Request Body

[form-data]

file: File Upload (file1.pdf)

file: File Upload (file2.pdf)

[
   {
    "name": "supporting_docs_1",
    "description": "supporting_docs_1 create ",
    "fileName": "file1.pdf",
    "contentType": "SECURITY_POLICY_DOCUMENTS",
    "sourceType": "INTERNAL",
    },
   {
    "name": "supporting_docs_2",
    "description": "supporting_docs_2 create ",
    "fileName": "file2.pdf",
    "contentType": "TECHNICAL_INTEGRATION_DOCUMENT",
    "sourceType": "INTERNAL"
    
   }
]

HTTP Status Code:

200 OK

JSON Response:

{    
   "items": [
    {
      "acknowledgement": {
       "message": "Supporting document upload was successful",
        "entityId": "3451144",
        "name": "supporting_docs_1"
      }
    },
    {
      "acknowledgement": {
       "message": "Supporting document upload was successful",
        "entityId": "3451146",
        "name": "supporting_docs_2"
      }
    }
  ],
  "hasMore": false,
  "count": 0,
  "totalResults": 0,
  "links": [
    {
      "rel": "CANONICAL",
      "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/applications/3451144/supportingdocs"
    },
    {
      "rel": "SELF",
      "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/applications/3451146/supportingdocs"
    }
  ]
}
Back to Top