Update Screenshot
put
/appstore/publisher/v1/applications/{listingVersionId}/screenshots/{id}
Update screenshot for an application.
Request
Supported Media Types
- multipart/form-data
Path Parameters
-
id: integer(int64)
Unique identifier of the screenshot to update.
-
listingVersionId: integer(int64)
Unique identifier of the listing for which to update the screenshot.
Upload the screenshot to be updated and provide 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
400 Response
Bad Request
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
Examples
The following example updates a screenshot for an existing application 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/screenshots/2916362"
Request Header
X-Oracle-UserId: fname.lname@oracle.com Authorization: Bearer Access-token
Request Body
[form-data] file: File Upload (screen_shots_1.png)
{ "name": "screen_shots_2", "description": "screen_shots_2 update", "fileName": "screen_shots_1.png", "sourceType": "INTERNAL" }
HTTP Status Code:
200 OK
JSON Response:
{ "entityId": "8434954", "name": "screen_shots_2" }Back to Top