Service Delete URL endpoint

This endpoint is invoked by AMS on application service instance deletion. The purpose of this endpoint is to delete service instances. This topic explains the details of the request when services are deleted. See Service Lifecycle for more information about service deletion.

Service URL

<service-base-url><service-delete-url>

These URLs are registered with AMS when creating a service.

Request Method

POST

Request Header

Authorization: Bearer <JWT>

Content-Type=application/json

Bearer Token

JWT claims

Key Value Definition Context
iss The current issuer of the token. Set to "AMS".
sub The subject of the token. Set to the product's UUID.
aud The audience of the token. Set to the app's Token Key.
exp The date and time the token will expire, expressed as a Unix timestamp. Must be after the current date/time. Set to 60 seconds after the JWT was created.
iat The date and time the JWT was issued, expressed as a Unix timestamp. Set to the current time.
jti The unique identifier for the JWT token. Set to a random UUID.
o.a.p.csourceRequest The source of the request. Set to the product's UUID.
o.a.p.cdestinationId The destination Id. Set to the app's UUID.

Signature

Signed with the app's install secret.

Sample JWT Payload

{
  "iss": "AMS",
  "sub": "aaebc06e-4ca9-4d19-858a-fbd8f5f5477a",
  "aud": "ea58c3ef-2747-4b83-a1e7-f9309febcc71",
  "exp": 1549555726,
  "iat": 1549555666,
  "jti": "82fcc603-6769-467b-ab93-31b5b3559f50",
  "o.a.p.csourceRequest": "aaebc06e-4ca9-4d19-858a-fbd8f5f5477a",
  "o.a.p.cdestinationId": "b35aaad2-06c9-4b35-aedd-47690366e99a"
}

Sample Request Body

{
    "uuid": "2128d91f-7248-4361-94b8-38a414d5cbb1",
    "assetType": "campaign",
    "assetId": null,
    "recordDefinition": {
        "inputParameters": [
        {
            "dataType": "Double",
            "unique": true,
            "name": "input",
            "width": 10
        }
        ],
        "outputParameters": [
        {
            "dataType": "Double",
            "unique": true,
            "name": "output",
            "width": 10
        }
        ]
    },
    "applicationService": {
        "uuid": "c2d3a932-2e00-45e5-9899-17d8edda00c7",
        "name": "service",
        "description": null,
        "baseUrl": "https://somefakeappbaseurl.com",
        "configureUrl": "/configure",
        "saveConfigurationUrl": null,
        "deleteUrl": "/delete",
        "createUrl": "/create",
        "invokeUrl": "/invoke",
        "statusUrl": null,
        "operationalUrl": null,
        "smallLogo": "https://smalllogourl",
        "mediumLogo": null,
        "largeLogo": null,
        "maxBatchSize": 0,
        "application": {
            "uuid": "d6862ebc-8c5e-4905-8da1-28e3166c978c",
            "name": "appname",
            "description": "description",
            "baseUrl": "https://www.oracle.com",
            "statusUrl": "status",
            "installUrl": "/installurl",
            "configureUrl": "/configure",
            "uninstallUrl": "/uninstall",
            "saveConfigurationUrl": "/save",
            "smallLogo": "smalllogo",
            "mediumLogo": "mediumlogo",
            "largeLogo": "largelogo",
            "status": "UP",
            "providerUuid": "53aba933-a031-46ce-ab69-4ad0f4cc3335"
        },
        "serviceType": {
            "name": "activity",
            "externalName": "activityext",
            "description": "activitytypeofservice"
            },
        "status": "UP"
        },
    "secret": null,
    "status": "CREATED"
}

Sample Response in case of success

200 OK

The app does not need to respond to this call. If the app chooses responds to this call, it will be ignored by AMS.

Learn more

Endpoint reference