Develop > API calls > Release gate APIs > Edit offering actions

Edit offering actions

This API allows you to edit offering actions.

URI Method Parameters Returns

{

"name": "Offering Action",

"description": "Action description" ,

"enabled": "true",

"applicationDesignId": "3aaf75a4-dc20-4baa-9033-3e181089112e",

"stage": "DEVELOPMENT",

"notifyOnSuccess": "true",

"notifyOnFailure": "true",

"ignoreOnFailure": "true",

"rejectOnFailure": "false",

"engineProcessId": "09d8f3d7-8847-467b-a1d8-0025412d13b3",

"engineProcessName": "Test App OO Flow",

"timeout": 2,

"providerInstanceId": "8a828b8c5a316e49015a3174b08c0005",

"providerType": "OFFERINGS",

"offeringId": "25009f4155b7443fb0b9c4671c0bf0cd",

"offeringName": "codarOfferings",

"catalogId": "a1dfc507-bf8a-3f80-7db2-bff4556c7137",

"optionSetDetails": "sampleOptionSetDetails",

"duration": "10hrs",

"requestJSON": {

"categoryName": "ACCESSORY",

"startDate": "",

"endDate": "",

"fields":{

"88928abf745d43fdad337926433565a8":false,

"520245338dd84cf59786a2ae0f73fbbb":1,

"ce3d77c48e8c45808e8f810b180f7822":false,

"517523c2e65b4eec9245233b79c8b095":1024,

"e095cfafc9a448dbab3e85edd9a10a50":false,

"7e51d39f14ed4389b457415433062835":2,

"8d8cc6cb950e4df3806074b96549eeb7":false,

"0c5efd2082bb4b9ea600ae3d2f827954":2048,

"308394053d224bda8ead3a1e18cafe41":false,

"e3f193f34cfb48b48a4cf05f642aa55d":3,

"019f327cafd447349edf6c7e5aae76a0":false,

"a5c19be867644b538e020a1aab9a4598":2048,

"b0ed8397935c4c39bcb6bb8b2482997e":false,

"d0012728a5c046dc88de74cdb76c4d6b":3,

"006b8016518741fe84d5078a8e8a77ac":false,

"eb0cac1a54744aecbfc1273841fe0db0":4096

},

"pricing":{

"88928abf745d43fdad337926433565a8":{

"initPrice":0,

"recurringPrice":0

},

"ce3d77c48e8c45808e8f810b180f7822":{

"initPrice":0,

"recurringPrice":0

},

"e095cfafc9a448dbab3e85edd9a10a50":{

"initPrice":0 ,

"recurringPrice":0

},

"8d8cc6cb950e4df3806074b96549eeb7":{

"initPrice":0,

"recurringPrice":0

},

"308394053d224bda8ead3a1e18cafe41":{

"initPrice":0,

"recurringPrice":0

},

"019f327cafd447349edf6c7e5aae76a0":{

"initPrice":0,

"recurringPrice":0

},

"b0ed8397935c4c39bcb6bb8b2482997e":{

"initPrice":0,

"recurringPrice":0

},

"b8016518741fe84d5078a8e8a77ac":{

"initPrice":0,

"recurringPrice":0

}

},

"displayNames":{

},

"action":"ORDER"

}

}

PUT

name - Name of the offering action

description - Description about offering action

enabled - true/false

applicationDesignId - application specific ID

stage - Application life cycle stage

notifyOnSuccess - true/false

offeringId - ID of the specific offering

duration - life time duration of the subscription

requestJSON - payload JSON after the subscription of offering

optionSetDetails - set of options of Option Set

catalogId - catalog ID of specific organization

200 - updated
400 - bad request
404 - not found

Examples

The following URL was sent:

https://localhost:8444/csa/api/codar/release-gate/gate-action/offering/5305bb88-79bb-44a4-87b5-873e1bd7f49e

The following JSON was returned:

{

"@self": "/csa/codar/release-gate/gate-action/25cd82b3-fdd9-4cc6-8f69-027a0e79e2ae",

"@type": "urn:x-hp:2012:software:cloud:data_model:ReleaseGateAction",

"id": "25cd82b3-fdd9-4cc6-8f69-027a0e79e2ae",

"name": "Offering Action123",

"description": "Action description",

"updatedBy": "admin",

"lastUpdated": "2017-02-20T10:29:17.647Z"

}