application/json
@{
var err = new JObject();
err["error"] = "No updatable fields provided.";
err["allowedFields"] = new JArray { "scope", "displayName", "state", "stateComment", "allowTracing", "expirationDate" };
err["note"] = "startDate, endDate, notificationDate, createdDate are audit-only fields and cannot be set via API.";
return err.ToString();
}
@((string)context.Variables["armBasePath"] + "/subscriptions/" + context.Request.MatchedParameters["id"] + "?api-version=2022-08-01")
PATCH
@("Bearer " + (string)context.Variables["armToken"])
*
application/json
@{
var body = new JObject();
body["properties"] = (JObject)context.Variables["filteredProps"];
return body.ToString();
}
())" />
application/json
@((string)context.Variables["finalBody"])
application/json
@(((IResponse)context.Variables["patchResponse"]).Body.As())