Update a theme image

put

/ccadmin/v1/themes/{id}/image

Updates an image associated with the specified theme's section. You must specify the path to the new image and the theme sectionId in the request payload.

This endpoint can also remove links between an image and a theme section.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : updateThemeImage_request
Type: object
Show Source
Example:
{
    "path":"url(/file/media/sitestudio/a.jpg)",
    "sectionId":"Site"
}
Back to Top

Response

Supported Media Types

204 Response

The operation was successful but no data was returned.

404 Response

Returned if theme's ID is invalid.
Body ()
Root Schema : updateThemeImage_404response
Type: object
Show Source
Example Response (application/json)
{
    "message":"HTTP 404 not found",
    "status":"404"
}

Default Response

The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
Error CodeDescriptionPossible Fix
70000Theme internal errorSee returned error messages for more information.
70004Theme with given ID does not exist on systemEnsure you have specified a valid theme Id.
70015Internal error updating theme imageSee returned error messages for more information.
70021Internal error retrieving themeSee returned error messages for more information.

The error response:
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top