Import keys (resolvable)
POST/v2/projects/:projectId/keys/import-resolvable
Import's new keys with translations. Translations can be updated, when specified.
Request
Path Parameters
- application/json
Body
required
- Array [
- Array [
- Array [
- ]
- ]
- KEEP: Translation is not changed
- OVERRIDE: Translation is overridden
- NEW: New translation is created)
- ]
keys object[]required
Key name to set translations for
The namespace of the key. (When empty or null default namespace will be used)
screenshots object[]
Ids of screenshot uploaded with /v2/image-upload endpoint
positions object[]
translations objectrequired
Object mapping language tag to translation
property name* ImportTranslationResolvableDto
Object mapping language tag to translation
Translation text
Possible values: [KEEP
, OVERRIDE
, NEW
]
Determines, how conflict is resolved.
Responses
- 200
- 400
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
keys object[]required
List of keys
Id of key record
Name of key
Namespace of key
Description of key
custom object
Custom values of the key
Custom values of the key
screenshots objectrequired
Map uploadedImageId to screenshot
property name* ScreenshotModel
Screenshots of the key
File name, which may be downloaded from the screenshot path.
When images are secured. Encrypted timestamp is appended to the filename.
Thumbnail file name, which may be downloaded from the screenshot path.
When images are secured. Encrypted timestamp is appended to the filename.
keyReferences object[]required
position object
{
"keys": [
{
"id": 0,
"name": "this_is_super_key",
"namespace": "homepage",
"description": "This key is used on homepage. It's a label of sign up button.",
"custom": {}
}
],
"screenshots": {}
}
Bad Request
- */*
- Schema
Schema
string
Unauthorized
- */*
- Schema
Schema
string
Forbidden
- */*
- Schema
Schema
string
Not Found
- */*
- Schema
Schema
string