GroupShare Web API, While I am trying to create a Translation Memories using Rest API POST /api/tmservice/tms , getting "You are not allowed to perform this operation"

GroupShare Web API, While I am trying to create a Translation Memories using Rest API POST /api/tmservice/tms , getting "You are not allowed to perform this operation"

Post Request

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"name": "Test From REST API",
"description": "Test From REST API",
"containerId": "3d81fd76-22af-4e95-b6a6-25d08e97f488",
"copyright": "©2024 GP",
"location": "/",
"languageDirections": [
{
"source": "en-gb",
"target": "fr-fr"
}
],
"recognizers": "RecognizeAll",
"translationMemoryId": "00000000-0000-0000-0000-000000000000",
"fieldTemplateId": "00000000-0000-0000-0000-000000000000",
"languageResourceTemplateId": "00000000-0000-0000-0000-000000000000",
"fuzzyIndexes": "SourceWordBased,TargetWordBased"
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Response

Fullscreen
1
{"errorCode":"AuthorizationError","message":"You are not allowed to perform this operation"}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Identified the root cause behind this, now able to create the TM with below

    Before you create a TM please make sure you HAVE CREATED A TEMPLATE FIELD and a LANGUAGE RESOURCE TEMPLATE

    Replace the Unique Ids after above call in below

     "fieldTemplateId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "languageResourceTemplateId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",

    And also send the ownerId which is Organisation Id, will be able get this based on location

     "ownerId" :"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"