A project group is a specified set of projectes, or a set of projectes that meet certain criteria. You can use groups to filter or display information in multiple ways, for instance by showing data from only certain projectes.
Returns up to 100 project groups from the collection with a key, ID, and link for each group. This operation is mostly for use in testing; use the query service to find project groups that meet certain criteria and specify the properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "1",
- "id": "1",
- "href": "/objects/projects/project-group/1"
}, - {
- "key": "3",
- "id": "3",
- "href": "/objects/projects/project-group/3"
}, - {
- "key": "5",
- "id": "5",
- "href": "/objects/projects/project-group/5"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new project group.
Creates a new project group.
id required | string Project or project group ID. Example: "Projects without PO" | ||||||
name required | string Name Example: "Projects that are waiting on PO" | ||||||
description | string or null Description Example: "This is a description." | ||||||
groupType | string Default: "all" Group type Example: "all" | ||||||
sortOrder | string Default: "ascending" Sort Order. Example: "ascending" | ||||||
maxMatches | string or null Max Matches. Example: "10" | ||||||
sortField | string Default: "PROJECTID" select sort field for project group. Example: "PROJECTID" | ||||||
isDimensionStructure | boolean Default: false If this checked, creating a dimension structure from a group enables you to add the group to the rows or columns of a financial report. Example: false | ||||||
conditionType | string Default: "and" The condition type for filters defined to create the class group. Example: "and" | ||||||
expression | string or null If conditionType is expression, you can manually add the text of the expression in this field. Example: "(1 AND 2)" | ||||||
Array of objects or null The memberFilter of the group | |||||||
Array
| |||||||
Array of objects | |||||||
Array
|
Created
Bad Request
{- "id": "E 01",
- "name": "my top 01 project",
- "description": "my top 01 project",
- "groupType": "all",
- "sortOrder": "descending",
- "sortField": "PROJECTID",
- "conditionType": "and",
- "memberFilter": [
- {
- "FIELD": "PROJECTID",
- "OPERATOR": "equals",
- "VALUE": "8"
}
]
}
{- "ia::result": {
- "key": "21",
- "id": "E 01",
- "href": "/objects/projects/project-group/19"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified project group.
key required | string system-assigned unique key for the project group. |
OK
Bad Request
{- "ia::result": {
- "key": "1",
- "id": "Top Projects",
- "name": "Top Level Projects",
- "description": "Top Level Projects",
- "groupType": "specific",
- "audit": {
- "createdDateTime": "2016-10-26T17:28:09Z",
- "modifiedDateTime": "2016-10-26T17:30:09Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "maxMatches": "10",
- "sortField": "PROJECTID",
- "expression": "(1 AND 2)",
- "sortOrder": "ascending",
- "groupMembers": [
- {
- "key": "1",
- "id": "DIM - BTI",
- "name": "Dimensions - Berkeley Technology Inc",
- "href": "/objects/projects/project/23",
- "status": "active",
- "sortOrder": "0"
}, - {
- "key": "2",
- "id": "P-0045",
- "name": "Implementation Project",
- "href": "/objects/projects/project/24",
- "status": "active",
- "sortOrder": "1"
}
], - "href": "/objects/projects/project-group/1"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing project group by setting field values. Any fields not provided remain unchanged.
key required | string system-assigned unique key for the project group. |
name | string Name Example: "Projects that are waiting on PO" | ||||||
description | string or null Description Example: "This is a description." | ||||||
groupType | string Default: "all" Group type Example: "all" | ||||||
sortOrder | string Default: "ascending" Sort Order. Example: "ascending" | ||||||
maxMatches | string or null Max Matches. Example: "10" | ||||||
sortField | string Default: "PROJECTID" select sort field for project group. Example: "PROJECTID" | ||||||
isDimensionStructure | boolean Default: false If this checked, creating a dimension structure from a group enables you to add the group to the rows or columns of a financial report. Example: false | ||||||
conditionType | string Default: "and" The condition type for filters defined to create the class group. Example: "and" | ||||||
expression | string or null If conditionType is expression, you can manually add the text of the expression in this field. Example: "(1 AND 2)" | ||||||
Array of objects or null The memberFilter of the group | |||||||
Array
| |||||||
Array of objects | |||||||
Array
|
OK
Bad Request
{- "description": "My Top 001 project"
}
{- "ia::result": {
- "key": "7",
- "id": "E 01",
- "href": "/objects/projects/project-group/7"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a project group.
key required | string system-assigned unique key for the project group. |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "Payload contains errors",
- "supportId": "sQrM9%7EYdh5oDEWVb80mrn9xuHjoAAAABBQ",
- "errorId": "REST-1064",
- "additionalInfo": {
- "messageId": "IA.PAYLOAD_CONTAINS_ERRORS",
- "placeholders": { },
- "propertySet": { }
}, - "details": [
- {
- "code": "invalidRequest",
- "message": "/testDate is not a valid field",
- "errorId": "REST-1043",
- "target": "/testDate",
- "additionalInfo": {
- "messageId": "IA.NOT_A_VALID_FIELD",
- "placeholders": {
- "FIELD": "/testDate"
}, - "propertySet": { }
}
}
]
}, - "ia::meta": {
- "totalCount": 3,
- "totalSuccess": 2,
- "totalError": 1
}
}, - "ia::error": {
- "code": "invalidRequest",
- "message": "Malformed URL",
- "supportId": "sQrM9%7EYdh5oDEWVb80mrn9xuHjoAAAABBQ",
- "details": [
- {
- "code": "invalidRequest",
- "message": "The content type is not valid",
- "correction": "TODO"
}
]
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "projects/project-group" | ||||||||
fields | Array of strings List of fields to include in the response. Can be any combination of these:
Example: ["key","id","max:vendor.creditLimit"] | ||||||||
Array of equal (object) or not equal (object) or less than (object) or (less than or equal (object)) or greater than (object) or (greater than or equal (object)) or in (object) or not in (object) or between (object) or not between (object) or contains (object) or does not contain (object) or starts with (object) or does not start with (object) or ends with (object) or does not end with (object) Filter conditions to select the objects to return based on their field values. You use operators and conditions to build your filter, such as Example: [{"$eq":{"status":"active"}},{"$gt":{"totalDue":"1000"}},{"$contains":{"name":"Acme"}}] | |||||||||
Array Any of: Field value must be equal to this specified value. For date fields, you can use these macro values that are relative to the current date or the
These are most useful for queries that you want to save and use repeatedly, such as for views or reports. Just change the For example,
| |||||||||
filterExpression | string Default: "and" Logical operators to apply when there are multiple filter conditions. The conditions in the Shortcuts:
Example: "(1 and 2) or 3" | ||||||||
| |||||||||
Array of objects Set the order of the results by specifying field names to sort by and whether they should be in ascending or descending order. Example: [{"totalDue":"asc"},{"lastPaymentMadeDate":"desc"}] | |||||||||
Array
| |||||||||
start | integer First record of the result set to include in the response. Example: 1 | ||||||||
size | integer Number of records to include in the response. Example: 100 |
OK
Bad Request
{- "object": "projects-project-group",
- "filters": [
- {
- "$eq": {
- "groupType": "specific"
}
}
], - "fields": [
- "key",
- "id",
- "name",
- "groupType",
- "description",
- "conditionType",
- "sortOrder",
- "maxMatches",
- "href"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "23",
- "id": "Projects without PO",
- "name": "Projects that are waiting on PO",
- "groupType": "specific",
- "description": "Projects with G10 and above.",
- "conditionType": "and",
- "sortOrder": "ascending",
- "maxMatches": "10",
- "href": "/objects/projects/project-group/23"
}, - {
- "key": "24",
- "id": "Projects with Contracts",
- "name": "Contract-based Projects",
- "groupType": "specific",
- "description": "Projects with contracts over $10,000.",
- "conditionType": "or",
- "sortOrder": "descending",
- "maxMatches": "20",
- "href": "/objects/projects/project-group/24"
}, - {
- "key": "25",
- "id": "Internal Projects",
- "name": "Internal Projects Group",
- "groupType": "specific",
- "description": "Projects managed internally.",
- "conditionType": "and",
- "sortOrder": "ascending",
- "maxMatches": "5",
- "href": "/objects/projects/project-group/25"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}