Project types let you group projects into categories for reporting. After defining project types, you can set each project to one of the types and then group and query based on the type.
Returns up to 100 object references from the collection with a key, ID, and link for each project type. This operation is mostly for use in testing; use the query service to find objects that meet certain criteria and to specify properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "100",
- "id": "Internal",
- "href": "/objects/projects/project-type/100"
}, - {
- "key": "101",
- "id": "External",
- "href": "/objects/projects/project-type/101"
}, - {
- "key": "102",
- "id": "Contract",
- "href": "/objects/projects/project-type/102"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 5,
- "next": 0,
- "previous": 0
}
}
Creates a new project type.
project type to create
id required | string User-specified name for the project type; used to categorize and report on projects. Example: "Internal" | ||||
object Parent project type, for project type hierarchies. | |||||
| |||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
Created
Bad Request
{- "id": "Internal",
- "parent": {
- "key": "12"
}, - "status": "active"
}
{- "ia::result": {
- "key": "1",
- "id": "Internal",
- "href": "/objects/projects/project-type/1"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified project type.
key required | string System-assigned key for the project type. Example: 956 |
OK
Bad Request
{- "ia::result": {
- "key": "1",
- "id": "Internal",
- "parent": {
- "key": "100",
- "id": "Billable",
- "href": "/objects/projects/project-type/100"
}, - "status": "active",
- "audit": {
- "createdDateTime": "2022-04-01T16:20:00Z",
- "modifiedDateTime": "2022-04-01T16:20:00Z",
- "createdBy": "1",
- "modifiedBy": "95"
}, - "entity": {
- "key": "46",
- "id": "Western Region",
- "name": "Western Region",
- "href": "/objects/company-config/entity/46"
}, - "href": "/objects/projects/project-type/1"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing project type by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for the project type. Example: 956 |
object Parent project type, for project type hierarchies. | |||||
| |||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
OK
Bad Request
{- "status": "inactive"
}
{- "ia::result": {
- "key": "1",
- "id": "Internal",
- "href": "/objects/projects/project-type/1"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a project type.
key required | string System-assigned key for the project type. Example: 956 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}