Изменить ссылку на шаблон
PATCH
bearerheader
AuthorizationBearer <token>Токен сервисного аккаунта. См. раздел «Аутентификация».
template_id*numberlink_id*numberapplication/jsonbody
title?stringsettings?objectexpires_at?string | nullФормат
date-timeТело ответа
responseapplication/json
id*numbertype*stringЗначения
"public""organization""permission"public_key*stringtitle*stringsettings*objectexpires_at*string | nullФормат
date-timecreated_at*stringФормат
date-timeupdated_at*stringФормат
date-timeВозможные ошибки
401Unauthorized
unauthorized: Необходима авторизация
{ "statusCode": 401, "error": "unauthorized", "message": "Необходима авторизация"}403Forbidden
access_denied: Недостаточно прав
{ "statusCode": 403, "error": "access_denied", "message": "Недостаточно прав"}404Not Found
template_link_not_found: Ссылка на шаблон не найдена
{ "statusCode": 404, "error": "template_link_not_found", "message": "Ссылка на шаблон не найдена"}451Unavailable For Legal Reasons
Система в режиме readonly. Не удалось проверить лицензию
{ "statusCode": 451, "error": "backend_license_failed", "message": "Система в режиме readonly. Не удалось проверить лицензию"}curl -X PATCH 'https://org.inspecto.in/api/templates/0/links/0' \ -H 'Content-Type: application/json' \ -d '{}'Пример ответа
{ "template": { "id": 0, "organization_id": 0, "unit": { "id": 0, "organization_id": 0, "parent_unit_id": 0, "code": "string", "title": "string", "description": "string", "avatar": "string", "background": "string", "projects_enabled": true, "features": { "projects": true, "cross_unit_tasks": true, "cross_unit_findings": true } }, "code": "string", "title": "string", "avatar": "string", "description": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "status": 1, "is_bookmarked": true, "template_folder_id": 0 }, "id": 0, "type": "public", "public_key": "string", "title": "string", "settings": {}, "data": { "full_template_prefill": { "pages": [ { "id": 0, "title": "string", "questions": [ {} ] } ], "response_sets": [ "string" ], "conditions": [ "string" ] } }, "expires_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}