The goal of this tutorial is to move a file from:
Preparation phase
To Translation phase
In order to change the phase of a file a POST call must be made to:
/api/projectserver/v2/projects/{projectId}/changephase
In the body of the request we need to sent couple information like: "LanguageFileId" and "PhaseId"
How to obtain the LanguageFileId
LanguageFileId can be obtained by doing a GET call to
/api/projectserver/v2/projects/{projectId}/files
From the response object take the value of "UniqueId" property (make sure you take the id for the target file)
How to obtain the PhaseId
First step is to get all the Phases Ids. We'll make a GET to:
/api/projectserver/v2/phases/{projectId}
From the response take the id of the phase you want. In out case we'll take the translation phase id.