Partially Update Related Document

patch

/appstore/publisher/v1/services/{listingVersionId}/relateddocs/{id}

Partially update a related document for the service.

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 : schema
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 partially updates a related document for an existing service belonging to a partner, by submitting a PATCH request on the REST resource using cURL.

cURL Example

curl -X PATCH -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/services/2908689/relateddocs/2916378"

Request Header

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

Request Body

[form-data]

file: File Upload
    {
        "name": "related_docs_1 update",
        "description": "related_docs_1 update",
     }    

HTTP Status Code:

200 OK

JSON Response:

{
   "entityId": "2916378"
   "name": "related_docs_1 update", 
}
Back to Top