Documentation

ProjectApi extends AbstractApi
in package

Using projects, you can keep your source files sorted.

Use API to manage projects, change their settings, or remove them if required.

Table of Contents

Methods

create()  : Project|null
Add Project
createFileFormatSettings()  : FileFormatSettings|null
Add Project File Format Settings
delete()  : mixed
Delete Project
deleteFileFormatSettings()  : void
Delete Project File Format Settings
downloadFileFormatSettingsCustomSegmentation()  : DownloadFile|null
Download Project File Format Settings Custom Segmentation
get()  : Project|null
Get Project Info
getFileFormatSettings()  : FileFormatSettings|null
Get Project File Format Settings
list()  : ModelCollection
List Projects
listFileFormatSettings()  : ModelCollection
List Project File Format Settings
resetFileFormatSettingsCustomSegmentation()  : void
Reset Project File Format Settings Custom Segmentation
update()  : Project|null
Edit Project Info
updateFileFormatSettings()  : FileFormatSettings|null
Edit Project File Format Settings

Methods

create()

Add Project

public create(array<string|int, mixed> $data) : Project|null
Parameters
$data : array<string|int, mixed>

string $data[name] required
string $data[identifier]
string $data[type]
string $data[sourceLanguageId] required
integer $data[groupId] required
integer $data[templateId] required
integer $data[groupId]
array $data[targetLanguageIds]
string $data[visibility]
string $data[languageAccessPolicy]
string $data[cname]
integer $data[vendorId]
integer $data[mtEngineId]
string $data[description]
boolean $data[delayedWorkflowStart]
boolean $data[skipUntranslatedStrings]
boolean $data[skipUntranslatedFiles]
integer $data[exportWithMinApprovalsCount]
integer $data[exportApprovedOnly]
integer $data[defaultTmId]
integer $data[defaultGlossaryId]

Tags
link

API Documentation

link

API Documentation Enterprise

Return values
Project|null

createFileFormatSettings()

Add Project File Format Settings

public createFileFormatSettings(int $projectId, array<string|int, mixed> $data) : FileFormatSettings|null
Parameters
$projectId : int
$data : array<string|int, mixed>
Tags
link
https://support.crowdin.com/developer/api/v2/#tag/Projects/operation/api.projects.file-format-settings.post
link
https://support.crowdin.com/developer/enterprise/api/v2/#tag/Projects-and-Groups/operation/api.projects.file-format-settings.post
Return values
FileFormatSettings|null

downloadFileFormatSettingsCustomSegmentation()

Download Project File Format Settings Custom Segmentation

public downloadFileFormatSettingsCustomSegmentation(int $projectId, int $fileFormatSettingsId) : DownloadFile|null
Parameters
$projectId : int
$fileFormatSettingsId : int
Tags
link
https://support.crowdin.com/developer/api/v2/#tag/Projects/operation/api.projects.file-format-settings.custom-segmentations.get
link
https://support.crowdin.com/developer/enterprise/api/v2/#tag/Projects-and-Groups/operation/api.projects.file-format-settings.custom-segmentations.get
Return values
DownloadFile|null

getFileFormatSettings()

Get Project File Format Settings

public getFileFormatSettings(int $projectId, int $fileFormatSettingsId) : FileFormatSettings|null
Parameters
$projectId : int
$fileFormatSettingsId : int
Tags
link
https://support.crowdin.com/developer/api/v2/#tag/Projects/operation/api.projects.file-format-settings.get
link
https://support.crowdin.com/developer/enterprise/api/v2/#tag/Projects-and-Groups/operation/api.projects.file-format-settings.get
Return values
FileFormatSettings|null

list()

List Projects

public list([array<string|int, mixed> $params = [] ]) : ModelCollection
Parameters
$params : array<string|int, mixed> = []

integer $params[groupId] for enterprise only
integer $params[hasManagerAccess] for enterprise only Enum{0,1} (0 -false, 1 true)
integer $params[limit]
integer $params[offset]
integer $params[userId] Get user own projects

Tags
link

API Documentation

link

API Documentation Enterprise

Return values
ModelCollection

listFileFormatSettings()

List Project File Format Settings

public listFileFormatSettings(int $projectId[, array<string|int, mixed> $params = [] ]) : ModelCollection
Parameters
$projectId : int
$params : array<string|int, mixed> = []
Tags
link
https://support.crowdin.com/developer/api/v2/#tag/Projects/operation/api.projects.file-format-settings.getMany
link
https://support.crowdin.com/developer/enterprise/api/v2/#tag/Projects-and-Groups/operation/api.projects.file-format-settings.getMany
Return values
ModelCollection

resetFileFormatSettingsCustomSegmentation()

Reset Project File Format Settings Custom Segmentation

public resetFileFormatSettingsCustomSegmentation(int $projectId, int $fileFormatSettingsId) : void
Parameters
$projectId : int
$fileFormatSettingsId : int
Tags
link
https://support.crowdin.com/developer/api/v2/#tag/Projects/operation/api.projects.file-format-settings.custom-segmentations.delete
link
https://support.crowdin.com/developer/enterprise/api/v2/#tag/Projects-and-Groups/operation/api.projects.file-format-settings.custom-segmentations.delete

updateFileFormatSettings()

Edit Project File Format Settings

public updateFileFormatSettings(int $projectId, FileFormatSettings $fileFormatSettings) : FileFormatSettings|null
Parameters
$projectId : int
$fileFormatSettings : FileFormatSettings
Tags
link
https://support.crowdin.com/developer/api/v2/#tag/Projects/operation/api.projects.file-format-settings.patch
link
https://support.crowdin.com/developer/enterprise/api/v2/#tag/Projects-and-Groups/operation/api.projects.file-format-settings.patch
Return values
FileFormatSettings|null

        
On this page

Search results