Process an extension

post

/ccadmin/v1/extensions/{id}

Activate/deactivate a previously uploaded extension.

When an extension is deactivated, all content contained in that extension is removed from the system. The extension zip file is retained.

When an extension is actibvated, the contents are revalidated and re-uploaded to the system. This is equivalent to what happens when the extension is initially uploaded from the UI.

Sample Request:

       POST /ccadmin/v1/extensions/{id}    

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : processExtension_request
Type: object
Show Source
  • The operation to perform, either 'activate' or 'deactivate'.
Example:
POST /ccadmin/v1/extensions/021be6f7-9b84-43ed-9d16-59358443d29f
Back to Top

Response

Supported Media Types

200 Response

Returned when the operation succeeds.
Body ()
Root Schema : processExtension_response
Type: object
Show Source
Example Response (application/json)
{
    "success":true,
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadminui/v1/extensions/951e17e9-e272-4b79-bb06-f591d955add7"
        }
    ]
}

401 Response

Returned if the user is not authenticated.
Body ()
Root Schema : processExtension_401response
Type: object
Show Source
Example Response (application/json)
{
    "errorCode":"00001000",
    "message":"The user is not authenticated",
    "status":"401"
}

404 Response

Returned if the extension is not found.
Body ()
Root Schema : processExtension_404response
Type: object
Show Source
Example Response (application/json)
{
    "message":"HTTP 404 not found",
    "type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4",
    "status":"404"
}

500 Response

Returned if an internal error occurs in the endpoint.
Body ()
Root Schema : processExtension_500response
Type: object
Show Source
Example Response (application/json)
{
    "errorCode":"000000000",
    "message":"Internal Error",
    "status":"500"
}

Default Response

The following internal error codes are thrown by this API when the request fails in Commerce:
Error CodeDescriptionPossible Fix
91004Endpoint internal errorSee error messages for more information.
91017Extension not found.Ensure that a valid extension has been specified.
91020Extension is already inactive.Ensure that you are deactivating an active extension.

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