Update Banner
put
/appstore/publisher/v1/applications/{listingVersionId}/banner
Update the banner for the application.
Request
Supported Media Types
- multipart/form-data
Path Parameters
-
listingVersionId: integer(int64)
Unique identifier of the application for which to update the banner.
Upload the banner to update and provide the required information.
Root Schema : FormDataMultiPart
Type:
Show Source
object
-
bodyParts(optional):
array bodyParts
-
contentDisposition(optional):
object ContentDisposition
-
entity(optional):
object entity
-
fields(optional):
object fields
Additional Properties Allowed: additionalProperties
-
headers(optional):
object headers
Additional Properties Allowed: additionalProperties
-
mediaType(optional):
object MediaType
-
parameterizedHeaders(optional):
object parameterizedHeaders
Additional Properties Allowed: additionalProperties
-
parent(optional):
object MultiPart
-
providers(optional):
object Providers
Nested Schema : entity
Type:
object
Nested Schema : MediaType
Type:
Show Source
object
-
parameters(optional):
object parameters
Additional Properties Allowed: additionalProperties
-
subtype(optional):
string
-
type(optional):
string
-
wildcardSubtype(optional):
boolean
Default Value:
false
-
wildcardType(optional):
boolean
Default Value:
false
Nested Schema : MultiPart
Type:
Show Source
object
-
bodyParts(optional):
array bodyParts
-
contentDisposition(optional):
object ContentDisposition
-
entity(optional):
object entity
-
headers(optional):
object headers
Additional Properties Allowed: additionalProperties
-
mediaType(optional):
object MediaType
-
parameterizedHeaders(optional):
object parameterizedHeaders
Additional Properties Allowed: additionalProperties
-
parent(optional):
object MultiPart
-
providers(optional):
object Providers
Nested Schema : Providers
Type:
object
Nested Schema : BodyPart
Type:
Show Source
object
-
contentDisposition(optional):
object ContentDisposition
-
entity(optional):
object entity
-
headers(optional):
object headers
Additional Properties Allowed: additionalProperties
-
mediaType(optional):
object MediaType
-
parameterizedHeaders(optional):
object parameterizedHeaders
Additional Properties Allowed: additionalProperties
-
parent(optional):
object MultiPart
-
providers(optional):
object Providers
Nested Schema : entity
Type:
object
Nested Schema : ParameterizedHeader
Type:
Show Source
object
-
parameters(optional):
object parameters
Additional Properties Allowed: additionalProperties
-
value(optional):
string
Nested Schema : FormDataBodyPart
Type:
Show Source
object
-
contentDisposition(optional):
object ContentDisposition
-
entity(optional):
object entity
-
formDataContentDisposition(optional):
object FormDataContentDisposition
-
headers(optional):
object headers
Additional Properties Allowed: additionalProperties
-
mediaType(optional):
object MediaType
-
name(optional):
string
-
parameterizedHeaders(optional):
object parameterizedHeaders
Additional Properties Allowed: additionalProperties
-
parent(optional):
object MultiPart
-
providers(optional):
object Providers
-
simple(optional):
boolean
Default Value:
false
-
value(optional):
string
Nested Schema : entity
Type:
object
Nested Schema : FormDataContentDisposition
Type:
Show Source
object
-
creationDate(optional):
string(date-time)
-
fileName(optional):
string
-
modificationDate(optional):
string(date-time)
-
name(optional):
string
-
parameters(optional):
object parameters
Additional Properties Allowed: additionalProperties
-
readDate(optional):
string(date-time)
-
size(optional):
integer(int64)
-
type(optional):
string
Nested Schema : entity
Type:
object
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
400 Response
Bad Request
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
Examples
The following example uploads the banner for an existing listing belonging to a partner, by submitting a PUT request on the REST resource using cURL.
cURL Example
curl -X PUT -H "X-Oracle-UserId: partner-email" -H "Authorization: Bearer Access-token" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW " -F "file=@file-path" -F "json=JSON-data-as-shown-in-following-example" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/applications/2908689/banner"
Request Header
X-Oracle-UserId: fname.lname@oracle.com Authorization: Bearer Access-token Content-Type: application/json
Request Body
[form-data] file: File Upload
{ "name": "banner" }
HTTP Status Code:
200 OK
JSON Response:
{ "message": "Banner upload was successful." }Back to Top