Keys create_with_error.cassette 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. [
  2. {
  3. "scope": "https://api.lokalise.com:443",
  4. "method": "POST",
  5. "path": "/api2/projects/803826145ba90b42d5d860.46800099/keys",
  6. "body": {
  7. "keys": [
  8. {
  9. "key_name": "searching:results:nothing_found",
  10. "description": "this is a duplicate",
  11. "platforms": [
  12. "web"
  13. ],
  14. "filenames": {
  15. "web": "%LANG_ISO%.yml"
  16. },
  17. "translations": [
  18. {
  19. "language_iso": "en",
  20. "translation": "duplicate"
  21. }
  22. ]
  23. },
  24. {
  25. "key_name": "key_not_dup",
  26. "platforms": [
  27. "web"
  28. ],
  29. "translations": [
  30. {
  31. "language_iso": "en",
  32. "translation": "Not duplicate!"
  33. }
  34. ]
  35. }
  36. ]
  37. },
  38. "status": 200,
  39. "response": {
  40. "project_id": "803826145ba90b42d5d860.46800099",
  41. "branch": "master",
  42. "keys": [
  43. {
  44. "key_id": 74189435,
  45. "created_at": "2021-01-29 17:34:16 (Etc/UTC)",
  46. "created_at_timestamp": 1611941656,
  47. "key_name": {
  48. "ios": "key_not_dup",
  49. "android": "key_not_dup",
  50. "web": "key_not_dup",
  51. "other": "key_not_dup"
  52. },
  53. "filenames": {
  54. "ios": "",
  55. "android": "",
  56. "web": "",
  57. "other": ""
  58. },
  59. "description": "",
  60. "platforms": [
  61. "web"
  62. ],
  63. "tags": [],
  64. "comments": [],
  65. "screenshots": [],
  66. "translations": [
  67. {
  68. "translation_id": 527556580,
  69. "key_id": 74189435,
  70. "language_iso": "ru",
  71. "translation": "",
  72. "modified_by": 20181,
  73. "modified_by_email": "bodrovis@protonmail.com",
  74. "modified_at": "2021-01-29 17:34:16 (Etc/UTC)",
  75. "modified_at_timestamp": 1611941656,
  76. "is_reviewed": false,
  77. "reviewed_by": 0,
  78. "is_fuzzy": true,
  79. "words": 0,
  80. "custom_translation_statuses": []
  81. },
  82. {
  83. "translation_id": 527556581,
  84. "key_id": 74189435,
  85. "language_iso": "en",
  86. "translation": "Not duplicate!",
  87. "modified_by": 20181,
  88. "modified_by_email": "bodrovis@protonmail.com",
  89. "modified_at": "2021-01-29 17:34:16 (Etc/UTC)",
  90. "modified_at_timestamp": 1611941656,
  91. "is_reviewed": false,
  92. "reviewed_by": 0,
  93. "is_fuzzy": false,
  94. "words": 2,
  95. "custom_translation_statuses": []
  96. },
  97. {
  98. "translation_id": 527556579,
  99. "key_id": 74189435,
  100. "language_iso": "f_over",
  101. "translation": "",
  102. "modified_by": 20181,
  103. "modified_by_email": "bodrovis@protonmail.com",
  104. "modified_at": "2021-01-29 17:34:16 (Etc/UTC)",
  105. "modified_at_timestamp": 1611941656,
  106. "is_reviewed": false,
  107. "reviewed_by": 0,
  108. "is_fuzzy": true,
  109. "words": 0,
  110. "custom_translation_statuses": []
  111. },
  112. {
  113. "translation_id": 527556575,
  114. "key_id": 74189435,
  115. "language_iso": "ar_001",
  116. "translation": "",
  117. "modified_by": 20181,
  118. "modified_by_email": "bodrovis@protonmail.com",
  119. "modified_at": "2021-01-29 17:34:16 (Etc/UTC)",
  120. "modified_at_timestamp": 1611941656,
  121. "is_reviewed": false,
  122. "reviewed_by": 0,
  123. "is_fuzzy": true,
  124. "words": 0,
  125. "custom_translation_statuses": []
  126. },
  127. {
  128. "translation_id": 527556573,
  129. "key_id": 74189435,
  130. "language_iso": "nl",
  131. "translation": "",
  132. "modified_by": 20181,
  133. "modified_by_email": "bodrovis@protonmail.com",
  134. "modified_at": "2021-01-29 17:34:16 (Etc/UTC)",
  135. "modified_at_timestamp": 1611941656,
  136. "is_reviewed": false,
  137. "reviewed_by": 0,
  138. "is_fuzzy": true,
  139. "words": 0,
  140. "custom_translation_statuses": []
  141. },
  142. {
  143. "translation_id": 527556571,
  144. "key_id": 74189435,
  145. "language_iso": "ca",
  146. "translation": "",
  147. "modified_by": 20181,
  148. "modified_by_email": "bodrovis@protonmail.com",
  149. "modified_at": "2021-01-29 17:34:16 (Etc/UTC)",
  150. "modified_at_timestamp": 1611941656,
  151. "is_reviewed": false,
  152. "reviewed_by": 0,
  153. "is_fuzzy": true,
  154. "words": 0,
  155. "custom_translation_statuses": []
  156. },
  157. {
  158. "translation_id": 527556576,
  159. "key_id": 74189435,
  160. "language_iso": "sq",
  161. "translation": "",
  162. "modified_by": 20181,
  163. "modified_by_email": "bodrovis@protonmail.com",
  164. "modified_at": "2021-01-29 17:34:16 (Etc/UTC)",
  165. "modified_at_timestamp": 1611941656,
  166. "is_reviewed": false,
  167. "reviewed_by": 0,
  168. "is_fuzzy": true,
  169. "words": 0,
  170. "custom_translation_statuses": []
  171. },
  172. {
  173. "translation_id": 527556577,
  174. "key_id": 74189435,
  175. "language_iso": "bm",
  176. "translation": "",
  177. "modified_by": 20181,
  178. "modified_by_email": "bodrovis@protonmail.com",
  179. "modified_at": "2021-01-29 17:34:16 (Etc/UTC)",
  180. "modified_at_timestamp": 1611941656,
  181. "is_reviewed": false,
  182. "reviewed_by": 0,
  183. "is_fuzzy": true,
  184. "words": 0,
  185. "custom_translation_statuses": []
  186. },
  187. {
  188. "translation_id": 527556578,
  189. "key_id": 74189435,
  190. "language_iso": "en-us",
  191. "translation": "",
  192. "modified_by": 20181,
  193. "modified_by_email": "bodrovis@protonmail.com",
  194. "modified_at": "2021-01-29 17:34:16 (Etc/UTC)",
  195. "modified_at_timestamp": 1611941656,
  196. "is_reviewed": false,
  197. "reviewed_by": 0,
  198. "is_fuzzy": true,
  199. "words": 0,
  200. "custom_translation_statuses": []
  201. },
  202. {
  203. "translation_id": 527556574,
  204. "key_id": 74189435,
  205. "language_iso": "es",
  206. "translation": "",
  207. "modified_by": 20181,
  208. "modified_by_email": "bodrovis@protonmail.com",
  209. "modified_at": "2021-01-29 17:34:16 (Etc/UTC)",
  210. "modified_at_timestamp": 1611941656,
  211. "is_reviewed": false,
  212. "reviewed_by": 0,
  213. "is_fuzzy": true,
  214. "words": 0,
  215. "custom_translation_statuses": []
  216. },
  217. {
  218. "translation_id": 527556572,
  219. "key_id": 74189435,
  220. "language_iso": "custom_1",
  221. "translation": "",
  222. "modified_by": 20181,
  223. "modified_by_email": "bodrovis@protonmail.com",
  224. "modified_at": "2021-01-29 17:34:16 (Etc/UTC)",
  225. "modified_at_timestamp": 1611941656,
  226. "is_reviewed": false,
  227. "reviewed_by": 0,
  228. "is_fuzzy": true,
  229. "words": 0,
  230. "custom_translation_statuses": []
  231. }
  232. ],
  233. "is_plural": false,
  234. "plural_name": "",
  235. "is_hidden": false,
  236. "is_archived": false,
  237. "context": "",
  238. "base_words": 2,
  239. "char_limit": 0,
  240. "custom_attributes": "",
  241. "modified_at": "2021-01-29 17:34:16 (Etc/UTC)",
  242. "modified_at_timestamp": 1611941656,
  243. "translations_modified_at": "2021-01-29 17:34:16 (Etc/UTC)",
  244. "translations_modified_at_timestamp": 1611941656
  245. }
  246. ],
  247. "errors": [
  248. {
  249. "message": "This key name is already taken",
  250. "code": 400,
  251. "key_name": {
  252. "ios": "searching:results:nothing_found",
  253. "android": "searching:results:nothing_found",
  254. "web": "searching:results:nothing_found",
  255. "other": "searching:results:nothing_found"
  256. }
  257. }
  258. ]
  259. },
  260. "rawHeaders": [
  261. "Server",
  262. "nginx",
  263. "Content-Type",
  264. "application/json",
  265. "Transfer-Encoding",
  266. "chunked",
  267. "Connection",
  268. "close",
  269. "Vary",
  270. "Accept-Encoding",
  271. "Cache-Control",
  272. "max-age=0, must-revalidate, no-cache, no-store, private",
  273. "Date",
  274. "Fri, 29 Jan 2021 17:34:16 GMT",
  275. "Pragma",
  276. "no-cache",
  277. "Allow",
  278. "GET",
  279. "X-Content-Type-Options",
  280. "nosniff",
  281. "X-Frame-Options",
  282. "deny",
  283. "X-XSS-Protection",
  284. "1; mode=block",
  285. "Strict-Transport-Security",
  286. "max-age=31536000",
  287. "Referrer-Policy",
  288. "origin",
  289. "Expires",
  290. "Fri, 29 Jan 2021 17:34:16 GMT",
  291. "Access-Control-Allow-Origin",
  292. "*",
  293. "Access-Control-Allow-Headers",
  294. "Content-Type"
  295. ],
  296. "responseIsBinary": false
  297. }
  298. ]