Create Service Providers

post

/appstore/publisher/v1/services/{listingVersionId}/serviceproviders

Creates service provider for the a service 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 service provider document for an existing service 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/services/9483951/serviceproviders"

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":"serviceProvider1",
      "description":"Create serviceprovider",
      "fileName":"doc.txt",
      "contentType":"CONSULTING_SERVICE",
      "sourceType":"INTERNAL"
   },
   {
      "name":"serviceProvider_Other",
      "description":"Create Serviceprovider External",
      "contentType":"OTHER",
      "sourceType":"EXTERNAL",
      "sourceURL":"https://docs.oracle.com/cd/E11882_01/server.112/e40540.pdf",
      "otherDescription":"OtherHeader"
   }
]

HTTP Status Code:

200 OK

JSON Response:

{
  "items": [
    {
      "acknowledgement": {
        "entityId": "9483967",
        "name": "serviceProvider_Other"
      }
    },
    {
      "acknowledgement": {
        "entityId": "9483969",
        "name": "serviceProvider1"
      }
    }
  ],
  "hasMore": false,
  "count": 0,
  "totalResults": 0,
  "links": [
    {
      "rel": "CANONICAL",
      "href": "https://den02mfs.us.oracle.com:7101/appstore/publisher/v1/services/9483951/serviceproviders"
    },
    {
      "rel": "SELF",
      "href": "https://den02mfs.us.oracle.com:7101/appstore/publisher/v1/services/9483951/serviceproviders"
    }
  ]
}
Back to Top