This method provides detailed information for a scope:
- Whether user can access segments in the scope or not
- Accessible languages, segment fields, custom fields, labels, etc.
- Allowed editing operations such as for texts, meta information, split/merge etc.
- Lists all languages with code and name, all custom fields, all labels and so on
This information can be used if you build a translation editing interface and you need to know in advance what information the user can access and modify.
URL
(POST) /api/resources/segments/rights
PARAMETERS
The message body contains a JSON object:
BODY | The scope json object. For example, for a job, project, memory, term base, global search etc. Example for a job: { "type": "Job", "jobid": 18422, "jobcdyt": true } Example for a project: { "type": "Project", "projectid": 229 } See Scope (Object) for more details. | object, Mandatory |
RESULTS
The method returns all the information for the scope.
See Rights (Object)
ACCESS RIGHTS
Requesting information for a scope the user is not authorized to access at all, will return an error.
For example, an external translator will not be able to obtain information for a project-scope. He/She may get information for authorized jobs only (such as assigned jobs).