[{"label":"Latest (2.0.1)","version":"latest"}]
telco-cloud-service-assurance

Patch Remediation Variable

Description

This API is used for updating a remediation parameter. Update API expects all parameters retrived via get API. Fields “variable_key” is read-only and can’t be updated. Any missing non mandatory field in update request, will be set to default values.

Request

Request

URL

URL


patch
https://{api_host}tcsa.host.com/variables/{variable_key}
Copy

Path Parameters

Path Parameters

string
variable_key Required

Unique id, to indentify the parameter


Request Body

Request Body

RemediationVariable of mimetype application/json Required
{
    "description": "test variable",
    "key": "testing",
    "value": "123"
}
string
description Required

description of the parameter


string
key Required

Name of the remediation parameter


string
value Required

value associated with the key

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

201 Created

Returns RemediationVariable of type application/json
string
description Required

description of the parameter


string
key Required

Name of the remediation parameter


string
value Required

value associated with the key

Errors

Errors

400

Invalid Request sent by the user


404

resouce not found


500

Internal server error

Code Samples

Code Samples

cURL Command

curl -X PATCH -H "Content-Type: application/json" -d '{"RemediationVariable":{"description":"test variable","key":"testing","value":"123"},"description":"test variable","key":"testing","value":"123"}' https://{api_host}tcsa.host.com/variables/{variable_key}


Feedback

Was this page helpful?