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
Response
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
{ "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" }
Response
{"errorCode":"AuthorizationError","message":"You are not allowed to perform this operation"}
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