Invite project contributor
Changed onInvite a new contributor to the project. The contributor will receive an email with an invitation link same as in the web app.
- The contributor will be able to accept the invitation and join the project.
- The endpoint requires Personal Token for authentication and the project must be on a paid plan to manage contributors.
- The endpoint is rate-limited to 1 request per second.
- The request body must contain the contributor's email, role, and optional assigned languages, tags, and customers.
- The role can be either TRANSLATOR or ADMIN. Only TRANSLATOR role allows to define assigned languages, tags, and customers.
- The assigned languages, tags, and customers must be defined in the request body.
- The default access level for languages, tags, and customers can be defined in the request body.
Translator role permissions
- VIEW_ACTIVITY
- IMPORT_FILES
- EXPORT_FILES
- MANAGE_TRANSLATION_KEYS
- MANAGE_LANGUAGES
- AUTO_TRANSLATE
- CHANGE_TRANSLATIONS
- REVIEW_TRANSLATIONS
- CHANGE_CUSTOMER_TRANSLATIONS
- REVIEW_CUSTOMER_TRANSLATIONS
- CHANGE_DESCRIPTION
- PUBLISH_TRANSLATIONS
- ACCESS_COMMENTS
Access levels: ALLOW and DENY.
Language access levels:
- WRITE_READ means the contributor can perform the action.
- READ means the contributor can read the translations, but cannot write them.
- HIDDEN means the contributor cannot perform the action.
Tag and Customer access levels:
- WRITE_READ means the contributor can perform the action.
- HIDDEN means the contributor cannot perform the action.
Request
- Base URLhttps://api.simplelocalize.io
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Request body
Example request
{
"email": "john@exmaple.com",
"role": "TRANSLATOR",
"assignedLanguages": [
{
"key": "en",
"access": "ALLOW"
}
],
"defaultLanguageAccess": "ALLOW",
"assignedTags": [
{
"name": "marketing",
"access": "ALLOW"
}
],
"defaultTagAccess": "ALLOW",
"assignedCustomers": [
{
"key": "customer123",
"access": "ALLOW"
}
],
"defaultCustomerAccess": "ALLOW",
"permissions": [
{
"key": "AUTO_TRANSLATE",
"access": "ALLOW"
}
]
}Response
OK
Changes
- breaking
removed the enum value
AUTO_TRANSLATECHANGE_TRANSLATIONSREVIEW_TRANSLATIONSPUBLISH_TRANSLATIONSMANAGE_TRANSLATION_KEYSADD_LANGUAGESUPDATE_LANGUAGESDELETE_LANGUAGESIMPORT_FILESEXPORT_FILESVIEW_ACTIVITYACCESS_COMMENTSCHANGE_CUSTOMER_TRANSLATIONSREVIEW_CUSTOMER_TRANSLATIONSCHANGE_DESCRIPTIONof the request property// - info
added the new
AUTO_TRANSLATECHANGE_TRANSLATIONSREVIEW_TRANSLATIONSPUBLISH_TRANSLATIONSMANAGE_TRANSLATION_KEYSMANAGE_LANGUAGESIMPORT_FILESEXPORT_FILESVIEW_ACTIVITYACCESS_COMMENTSCHANGE_CUSTOMER_TRANSLATIONSREVIEW_CUSTOMER_TRANSLATIONSCHANGE_DESCRIPTIONenum value to the request property// - info
added the new
DEVELOPERenum value to the request property
- breaking
- info
endpoint added
- info