var datasettings = {
base64Data: "данные файлового контейнера в кодировке base64"
}
$.ajax({
url"url": "https://localhost:9094/api/v1/ticket/7934356486e81068-147faa67-4a2a47ff-ac2a98b3-182d7a55f802cc226a9147c0/keyStore",
type"method": "POSTPUT",
"timeout": 0,
dataType: "jsonheaders",: {
contentType"Content-Type": "application/json",
},
"data": JSON.stringify(data)
}).done(function (jsonResponse, textStatus, xhr) {
message = jsonResponse.message;
}).fail(function (xhr) {
try {
var jsonResponse = JSON.parse(xhr.responseText);
message = jsonResponse.message;
failureCause = jsonResponse.failureCause;
} catch (e) {
message = (xhr.responseText == undefined) ? "Ошибка при загрузке данных ключевого контейнера." : xhr.responseText;
}
})"keyStoreUri": "93fd72ec-55f6-4985-8216-6eb112d99508",
"bearerToken": "{{tDepsignToken}}"
}),
};
$.ajax(settings).done(function (response) {
console.log(response);
}); |