Deleting translation units from translation memory

Hello

I am not able to use delete translation units endpoint.

example url

http://gs2017dev.sdl.com:41235/api/tmservice/tms/147277e1-7069-4d82-a68c-50c897118f6b/tus/de-de/af-za

 

example Unit

 

{

  • "id":"a2a8bd33-0d12-4a23-b4ca-0f032ffc9454",
  • "parentFileId":"25b75237-9759-43d6-9658-f17477802059",
  • "index":2,
  • "source":{
    • "id":"ce6bd3e8-c0fb-490a-965f-783fe4c5af7d",
    • "type":"paragraph",
    • "children":[
      1. {
        • "id":"395e6c72-b640-4498-a0ab-d04bcbf2ccf2",
        • "segmentNumber":"2",
        • "type":"segment",
        • "children":[
          1. {
            • "id":"2d48e647-5983-4420-b3f9-df6943627eb7",
            • "text":"word2",
            • "type":"text"
            }
          ]
        }
      ]
    },
  • "target":{
    • "id":"3721484f-c87d-43b0-bb50-b8ce4d751cea",
    • "type":"paragraph",
    • "children":[
      1. {
        • "id":"395e6c72-b640-4498-a0ab-d04bcbf2ccf2",
        • "segmentNumber":"2",
        • "translationOrigin":{
          • "originType":"TM",
          • "originalTranslationHash":"22955972"
          },
        • "type":"segment",
        • "metadata":{
          • "tuid":"2",
          • "tuguid":"f0c5e9c8-b1df-40c4-b20e-19371d51cf2e",
          • "systemFields":"{\"CreationDate\":\"2018-10-24T09:32:37Z\",\"ChangeDate\":\"2018-10-24T09:32:37Z\",\"UseDate\":\"2018-10-24T09:51:24Z\",\"UseUser\":\"kai.schrader\",\"UseCount\":0,\"CreationUser\":\"kai.schrader\",\"ChangeUser\":\"kai.schrader\"}",
          • "customFields":"[{\"Values\":[\"string\"],\"ValueType\":2,\"Name\":\"Brand\"},{\"Values\":[\"string\"],\"ValueType\":2,\"Name\":\"Project\"},{\"Values\":[\"additionalString\",\"string\"],\"ValueType\":2,\"Name\":\"Project Type\"},{\"Values\":[\"string\"],\"ValueType\":2,\"Name\":\"Text Type\"}]"
          },
        • "children":[
          1. {
            • "id":"e17dbcbb-c0ca-43b2-bb07-9547b145d2fb",
            • "text":"trans2",
            • "type":"text"
            }
          ]
        }
      ]
    }

}

 

How can I create body, to remove unit with  source text":"word2"target text":"trans2" and fields [{\"Values\":[\"string\"],\"ValueType\":2,\"Name\":\"Brand\"},{\"Values\":[\"string\"],\"ValueType\":2,\"Name\":\"Project\"},{\"Values\":[\"additionalString\",\"string\"],\"ValueType\":2,\"Name\":\"Project Type\"},{\"Values\":[\"string\"],\"ValueType\":2,\"Name\":\"Text Type\"}]"

1 Replies Latest Replies: 6 Nov 2018 11:48 AM by Florentina Caputa

1 Reply

  • Hello  
    The following article might help you on the deletion process: producthelp.sdl.com/.../bd9bfe10-d6f8-40f5-b1ad-e757938395cb.htm

    Please see the "Delete a translation unit" paragraph from the article.

    With kind regards,
    Florentina Caputa.


Related