Update an existing Template based on the name of the template.

put

/oam/services/rest/ssa/api/v1/template/{name}

Request

Supported Media Types
Path Parameters
Body ()
Template with the corresponding name will be replaced with this content.
Root Schema : Template
Type: object
Show Source
Nested Schema : dynamicParams
Type: array
To use dynamic parameters while defining valueTransformation and valueFiltering, they must be added here.
Show Source
Nested Schema : ValueFiltering
Type: object
Show Source
Nested Schema : valueTransformation
Type: array
Show Source
Nested Schema : params
Type: array
Parameters for the java method used in populateIf or populateIfNot tag.
Show Source
Nested Schema : type
Type: array
Type of the parameters.
Show Source
Nested Schema : ValueTransformation
Type: object
Show Source
Nested Schema : params
Type: array
Parameters for the java method used in operation tag.
Show Source
Nested Schema : type
Type: array
Type of the parameters.
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : Template
Type: object
Show Source
Nested Schema : dynamicParams
Type: array
To use dynamic parameters while defining valueTransformation and valueFiltering, they must be added here.
Show Source
Nested Schema : ValueFiltering
Type: object
Show Source
Nested Schema : valueTransformation
Type: array
Show Source
Nested Schema : params
Type: array
Parameters for the java method used in populateIf or populateIfNot tag.
Show Source
Nested Schema : type
Type: array
Type of the parameters.
Show Source
Nested Schema : ValueTransformation
Type: object
Show Source
Nested Schema : params
Type: array
Parameters for the java method used in operation tag.
Show Source
Nested Schema : type
Type: array
Type of the parameters.
Show Source
Back to Top

Examples

cURL Sample Request

curl -X PUT \
https://<admin-host>:<admin-port>/oam/services/rest/ssa/api/v1/template/website \
-H 'Accept: application/json' \
-H 'Authorization: Basic dGVzdDp0ZXN0=' \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
    "valueMapping": "$user.attr.website",
    "valueFiltering": {
        "populateIf": "startsWith",
        "params": [
            "https"
        ]
    },
    "valueTransformation": [
        {
            "operation": "toLowerCase"
        }
    ]
}'
Back to Top