Get information about a specific project type
Get information about a project type based on its ID.
sessionId in the response is your session token. Use this token in all the other calls that you make.
Also, make sure that you have the appropriate user type permissions to perform this API call. To view or update your permissions, in WorldServer, go to and then select your user type.
API call
Details
- GET method
- Content-Type in the header:
application/json - Mandatory parameters: the session token (as a query string parameter or as a key-value pair in the header) and the projectTypeId (as a URI parameter)
Available filters
| Filter | Description |
|---|---|
| fields=<fieldName1,fieldName2,…,fieldNameN> | The names of the fields to be included in the JSON response, separated by commas. Do not use in conjunction with the excludedFields filter. |
| excludedFields=<fieldName1,fieldName2,…,fieldNameN> | The names of the fields to be excluded from the JSON response, separated by commas. Do not use in conjunction with the fields filter. |
- <protocol>://<ws-host>:<ws-port>/ws-api/v2/projectTypes/<projectTypeId>?token=<sessionId>&fields=id,name
- <protocol>://<ws-host>:<ws-port>/ws-api/v2/projectTypes/<projectTypeId>?token=<sessionId>&excludedFields=name
Advanced filtering
To reduce the amount of data in the result and to improve performance, you can perform the filtering deeper in the result tree structure. For example: <protocol>://<ws-host>:<ws-port>/ws-api/v2/projectGroups/<projectTypeId>?token=<sessionId>&fields=id,name,sourceLocale(id,language(id,languageCode))
- The ID, the name, and the source locale of the project type.
- The ID and the language of the source locale.
- Inside the language model, the ID and the code of the language.
Response
Error messages
| Message | Status code |
|---|---|
| No session token provided or invalid token | 401 Unauthorized |
| Resource PROJECT_TYPE (ID) not found | 404 Not Found |
| For input string: \<invalidId>\ (If the ID you entered is not a valid number.) | 500 Internal Server Error |