### Example Response Body for GET /Users Source: https://developer.onetrust.com/onetrust/reference/managing-users This is an example of the JSON response body when retrieving a list of users. It includes pagination details and a list of user resources, each with their associated metadata and attributes. ```json { "schemas": [ "urn:ietf:params:scim:api:messages:2.0:ListResponse" ], "totalResults": 7, "startIndex": 1, "itemsPerPage": 2, "Resources": [ { "id": "dd525596-f8bb-45d8-83e5-02bbb3c501a1", "externalId": null, "meta": { "created": "2020-09-22T13:57:14.813+00:00", "lastModified": "2020-09-28T21:02:08.003+00:00", "location": "https://trial.onetrust.com/api/scim/v2/Users/dd525596-f8bb-45d8-83e5-02bbb3c501a1", "resourceType": "User" }, "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User" ], "userName": "gsu2@testuser.com", "name": { "familyName": "User", "givenName": "Google" }, "userType": "Internal", "active": true, "groups": [ { "value": "331aeef9-887f-4851-9242-b7a008d061be:9c41e0f1-d596-4c5e-a620-1221533581bf", "display": "Auditor - TestUser" } ], "emails": [ { "value": "gsu2@testuser.com", "display": "gsu2@testuser.com", "primary": true, "type": "work" } ], "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": { "businessUnit": null, "division": null, "employeeId": null, "officeLocation": null, "department": null, "manager": { "value": null, "displayName": null, "$ref": "https://trial.onetrust.com/api/scim/v2/Users/dd525596-f8bb-45d8-83e5-02bbb3c501a1" }, "jobTitle": null } }, { "id": "54f98b9f-9521-49f7-98bf-f69e2f85a4b1", "externalId": null, "meta": { "created": "2020-09-25T22:58:39.253+00:00", "lastModified": "2020-09-30T13:28:22.790+00:00", "location": "https://trial.onetrust.com/api/scim/v2/Users/54f98b9f-9521-49f7-98bf-f69e2f85a4b1", "resourceType": "User" }, "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User" ], "userName": "gsu3@testuser.com", "name": { "familyName": "User3", "givenName": "Google" }, "userType": "Internal", "active": true, "groups": [ { "value": "331aeef9-887f-4851-9242-b7a008d061be:9c41e0f1-d596-4c5e-a620-1221533581bf", "display": "Auditor - TestUser" } ], "emails": [ { "value": "gsu3@testuser.com", "display": "gsu3@testuser.com", "primary": true, "type": "work" } ], "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": { "businessUnit": null, "division": null, "employeeId": null, "officeLocation": null, "department": null, "manager": { "value": null, "displayName": null, "$ref": "https://trial.onetrust.com/api/scim/v2/Users/54f98b9f-9521-49f7-98bf-f69e2f85a4b1" }, "jobTitle": null } } ] } ``` -------------------------------- ### Get List of Transactions - Initial Request Source: https://developer.onetrust.com/onetrust/reference/understanding-implementing-pagination This example shows how to construct the initial URL for the Get List of Transactions API, including the `size` parameter for pagination. Cursor-based pagination is used, so the `page` parameter is not included. ```APIDOC ## Get List of Transactions - Initial Request ### Description This example demonstrates setting up the base URL for retrieving a list of transactions, incorporating the `size` parameter for pagination. It highlights the use of cursor-based pagination where a `page` parameter is not applicable. ### Method GET ### Endpoint `/api/consent/v2/transactions` ### Query Parameters - **size** (integer) - Optional - The number of results per page. Example: `1` ### Request Example ```python # Optional Size set to 1 url = api_host + "/api/consent/v2/transactions?size=1" ``` ### Example Data ``` https://app.onetrust.com/api/consent/v2/transactions?size=1 ``` > **Note**: When dealing with large datasets, consider rate limits and error handling. Choose a `size` that balances request frequency and load time for your application. ``` -------------------------------- ### Example TIA Risk Creation Action for Split Processing Source: https://developer.onetrust.com/onetrust/reference/importing-gdpr-transfer-impact-assessment-template-into-onetrust This JSON object defines an action for creating a risk related to split or multi-party processing. It specifies risk levels, descriptions, recommendations, and associated controls. ```json { "conditionGroups": [ { "sectionId": null, "questionId": null, "conditions": [ { "sectionId": "a7e15759-7464-4282-bdd6-49d825dd1224", "questionId": "024e01b5-2f91-44e3-a6e7-d530d211e06c", "logicalOperator": "OR", "comparisonOperator": "NOT_EQUAL_TO", "optionId": null, "optionType": "DEFAULT", "responseCount": null, "option": null, "optionList": [ { "optionId": "642e0c3f-4954-476e-9850-706fa2d4432d", "option": "No", "optionType": "DEFAULT" } ], "dataElements": null, "dataCategories": null, "dataSubjects": null } ], "logicalOperator": "AND" } ], "action": "RISK_CREATION", "actionParameters": { "level": 4, "description": "Split or multi party processing may effectively safeguard a transfer, provided you apply specific controls.", "recommendation": "Apply specific controls to ensure that split/multi party processing is effective. ", "probabilityLevel": "VeryHigh", "impactLevel": "VeryHigh", "probabilityLevelId": 4, "impactLevelId": 4, "riskScore": 8, "name": null, "categories": [ { "id": "c402b042-8292-461f-953b-082307a57004" } ], "controls": [ { "id": "91e7fb3c-2643-490e-b246-25a3e398159e", "identifier": "1.5.4", "name": "The algorithm used for the shared computation is secure against active adversaries. [Use Case 5: Split or multi-party processing]", "frameworkName": "EDPB Examples of Supplementary Measures for GDPR Data Transfers to Third Countries (Recommendations 01/2020)" }, { "id": "b82fa4bb-9e85-4eb5-b600-3f44fcdba1aa", "identifier": "1.5.3", "name": "The data processing is designed to prevent re-identification of data subjects. [Use Case 5: Split or multi-party processing]", "frameworkName": "EDPB Examples of Supplementary Measures for GDPR Data Transfers to Third Countries (Recommendations 01/2020)" } ] }, "conditionGroupType": "QUESTION_CONDITION", "actionDetails": [ { "id": "c892433d-5408-4ce5-8bc6-fd66c4e8cb48", "actionRuleId": "9163f921-d4b3-44b6-a854-c541c922be1b", "sectionId": "a7e15759-7464-4282-bdd6-49d825dd1224", "questionId": "06d8a19c-1710-4a75-b013-fd6c9d084d68" } ], "id": "9163f921-d4b3-44b6-a854-c541c922be1b", "sequence": 38, "rootVersionId": "333dbd31-74c2-41b1-af9d-bcd0e16a4d40", "name": "Pseudonymization ", "active": true } ``` -------------------------------- ### Example JSON for Transfer Impact Assessment Template Source: https://developer.onetrust.com/onetrust/reference/importing-gdpr-transfer-impact-assessment-template-into-onetrust This JSON structure represents a template for a Transfer Impact Assessment, including details about destination, inventory sections, and questions. It's used for importing assessment templates into OneTrust. ```json {"transferImpactAssessmentTemplate":{"id":"5-90505d2d8adf","destinationInventorySectionId":"ce0e1775-675d-4686-96e0-2a080a1b0ce3","destinationInventoryQuestionId":"4eac414a-5bd7-4900-ad57-7fe7bcaf7a1e"}},"responseFilterByQuestionId":null,"responseFilterWithBusinessKeysByQuestionId":{},"businessKeyReference":null,"seedReference":null,"orgGroupId":"526ac23a-728c-4835-b979-776b0268b6f3","welcomeTitle":"Where would you like to begin?","frameworkTags":null,"languageCode":"en-us","hasQuestionsWithLibraryLabels":null,"scoreProfilesConfigured":false}} ``` -------------------------------- ### Example TIA Condition Object Source: https://developer.onetrust.com/onetrust/reference/importing-gdpr-transfer-impact-assessment-template-into-onetrust This JSON object represents a condition within a Transfer Impact Assessment template. It specifies comparison operators, logical operators, and identifiers for questions and options. ```json { "comparisonOperator": "NOT_EQUAL_TO", "logicalOperator": "OR", "optionId": "81e5c256-cbf0-4c9f-bc80-187e284717df", "optionType": "DEFAULT", "option": "Yes", "sectionId": "9d4ae73c-dac6-4b3f-bbbf-9a2fe895aaeb", "questionId": "fc0ad68e-dba5-4460-9d79-34f310e6e1af", "responseCount": None, "group": 3, "optionList": None } ] } ] }, { "sectionId": "671ac1af-f16b-4096-81c4-9ce47355b8e0", "questionId": "ccb9373b-7ff0-4651-956c-9de1709254bf", "conditionGroupExpressions": [ { "expressionGroups": [ { "expressions": [ "$..[?( ( @.responseId != '3dbbc738-a9b4-477d-8ee7-5b9f73af3569' ) && ( @.questionId == '877540cb-6ac5-4275-a4d0-8e1073828050' ) )]" ], "logicalOperator": None, "expressionType": "JSONPATH" }, { "expressions": [ "$..[?( ( ( @.responseId == 'a20fc718-7cec-4e67-826b-51e8e5ff0ef9' ) && ( @.questionId == 'c346b4eb-b71e-4701-bce6-8e9d78ca38f8' ) ) || ( ( @.responseId == 'a70fa995-5cd2-48fb-9c9b-7a249a9b6959' ) && ( @.questionId == 'c346b4eb-b71e-4701-bce6-8e9d78ca38f8' ) ) )]" ], "logicalOperator": None, "expressionType": "JSONPATH" }, { "expressions": [ "$..[?( ( @.responseId != '6404cd2c-fedd-4847-907c-e3ca96c48f86' ) && ( @.questionId == '17fe032b-96fe-4aee-b598-4af6b681954e' ) )]" ], "logicalOperator": None, "expressionType": "JSONPATH" }, { "expressions": [ "$..[?( ( @.responseId != '81e5c256-cbf0-4c9f-bc80-187e284717df' ) && ( @.questionId == 'fc0ad68e-dba5-4460-9d79-34f310e6e1af' ) )]" ], "logicalOperator": None, "expressionType": "JSONPATH" } ] } ], "anchorQuestionDetails": [ { "sectionId": "9d4ae73c-dac6-4b3f-bbbf-9a2fe895aaeb", "questionId": "fc0ad68e-dba5-4460-9d79-34f310e6e1af" }, { "sectionId": "671ac1af-f16b-4096-81c4-9ce47355b8e0", "questionId": "877540cb-6ac5-4275-a4d0-8e1073828050" }, { "sectionId": "9d4ae73c-dac6-4b3f-bbbf-9a2fe895aaeb", "questionId": "c346b4eb-b71e-4701-bce6-8e9d78ca38f8" }, { "sectionId": "9d4ae73c-dac6-4b3f-bbbf-9a2fe895aaeb", "questionId": "17fe032b-96fe-4aee-b598-4af6b681954e" } ], "conditionGroupDtos": [ { "logicalOperator": "OR", "conditions": [ { "comparisonOperator": "NOT_EQUAL_TO", "logicalOperator": "OR", "optionId": "3dbbc738-a9b4-477d-8ee7-5b9f73af3569", "optionType": "DEFAULT", "option": "Yes", "sectionId": "671ac1af-f16b-4096-81c4-9ce47355b8e0", "questionId": "877540cb-6ac5-4275-a4d0-8e1073828050", "responseCount": None, "group": 0, "optionList": None }, { "comparisonOperator": "EQUAL_TO", "logicalOperator": "OR", "optionId": "a20fc718-7cec-4e67-826b-51e8e5ff0ef9", "optionType": "DEFAULT", "option": "Other Third Country", "sectionId": "9d4ae73c-dac6-4b3f-bbbf-9a2fe895aaeb", "questionId": "c346b4eb-b71e-4701-bce6-8e9d78ca38f8", "responseCount": None, "group": 1, "optionList": None }, { "comparisonOperator": "EQUAL_TO", "logicalOperator": "OR", "optionId": "a70fa995-5cd2-48fb-9c9b-7a249a9b6959", "optionType": "DEFAULT", "option": "United States", "sectionId": "9d4ae73c-dac6-4b3f-bbbf-9a2fe895aaeb", "questionId": "c346b4eb-b71e-4701-bce6-8e9d78ca38f8", "responseCount": None, "group": 1, "optionList": None }, { "comparisonOperator": "NOT_EQUAL_TO", "logicalOperator": "OR", "optionId": "6404cd2c-fedd-4847-907c-e3ca96c48f86", "optionType": "DEFAULT", "option": "Derogations", "sectionId": "9d4ae73c-dac6-4b3f-bbbf-9a2fe895aaeb", ``` -------------------------------- ### Example TIA Control Object for Pseudonymization Source: https://developer.onetrust.com/onetrust/reference/importing-gdpr-transfer-impact-assessment-template-into-onetrust This JSON object represents a control related to pseudonymization, often used in TIA templates. It includes details like control ID, identifier, name, and framework name. ```json { "id": "06687014-4817-4e97-bc56-dfbc210a8c45", "identifier": "1.2.4", "name": "it is ensured that the data exporter retains sole control of the algorithm or repository that enables re-identification using the additional information. [Use Case 2: Transfer of pseudonymised Data]", "frameworkName": "EDPB Examples of Supplementary Measures for GDPR Data Transfers to Third Countries (Recommendations 01/2020)" } ``` -------------------------------- ### Search Data Subjects by Purpose Source: https://developer.onetrust.com/onetrust/reference/searchdatasubjectspostusingpost Use this example to find data subjects who have granted consent for a specific purpose. Replace the example purpose GUID with the actual GUID for your purpose. ```json { "purposeGuid": "550e8400-e29b-41d4-a716-446655440000", "consentStatus": "GRANTED" } ``` -------------------------------- ### Create Project Example Source: https://developer.onetrust.com/onetrust/reference/addentityusingentitytypeidorentitytypenameusingpost Example request to create a project with attributes. ```APIDOC ## POST /api/v2/entities ### Description Creates a new entity, such as a project, with specified attributes. ### Method POST ### Endpoint /api/v2/entities ### Request Body - **name** (string) - Required - The name of the entity. - **attributes** (object) - Optional - A key-value map of attributes for the entity. - **attributeTextValue.value1** (array) - Optional - Example attribute for text value. - **value** (string) - Required - The text value for the attribute. - **organization** (object) - Required - The organization the entity belongs to. - **id** (string) - Required - The ID of the organization. ### Request Example ```json { "name": "dataset_01", "attributes": { "attributeTextValue.value1": [ { "value": "2025-06-29T18:30:00.000Z" } ] }, "organization": { "id": "c9e5a35b-9be7-4dd6-adac-0bee7c02384f" } } ``` ### Response #### Success Response (201) - **id** (string) - The unique identifier of the created entity. - **number** (integer) - The sequential number of the entity within its type. - **name** (string) - The name of the created entity. - **organization** (object) - Information about the organization. - **schemaId** (string) - The ID of the schema used for the entity. - **entityType** (object) - Information about the entity type. - **workflow** (object) - Information about the associated workflow. - **stage** (object) - Information about the current stage of the entity. - **createdDate** (string) - The date and time when the entity was created. - **lastModifiedDate** (string) - The date and time when the entity was last modified. - **createdBy** (array) - Information about the user who created the entity. - **lastModifiedBy** (array) - Information about the user who last modified the entity. - **attributeSingleSelectValue.value1** (array) - Example attribute for single select value. #### Response Example ```json { "id": "4771fd4c-5f86-49bc-9757-808c04541609", "number": 158, "name": "Project_03", "organization": { "id": "c9e5a35b-9be7-4dd6-adac-0bee7c02384f", "name": "PLTF REP" }, "schemaId": "fc39968b-9393-4041-8712-e50da2f19e03", "entityType": { "id": "ef4e5bf9-7462-43af-b74f-72b61308629b", "name": "projects", "nameKey": "CE.Projects.Name", "seeded": true, "moduleName": "CustomEntityManagement", "schemaName": "projects" }, "workflow": { "id": "c86bffc1-6bd5-414b-816e-dfe330a9c7f5", "name": "MS Workflow", "nameKey": null, "type": "ef4e5bf9-7462-43af-b74f-72b61308629b", "workflowMode": "ADVANCED" }, "stage": { "id": "0f304090-d19d-4749-9bac-a59efba81699", "name": "Not Started", "nameKey": "CE.Workflow.Stage.NotStarted", "badgeColor": "New", "sequence": null }, "createdDate": "2025-06-12T12:22:18.320Z", "lastModifiedDate": "2025-06-12T12:42:21.287Z", "createdBy": [ { "id": "41955b71-e581-4187-ab6c-d00d1403350c", "value": "Arpita K", "disabled": false } ], "lastModifiedBy": [ { "id": "41955b71-e581-4187-ab6c-d00d1403350c", "value": "Arpita K", "disabled": false } ], "attributeSingleSelectValue.value1": [ { "id": "b0f49d9a-225d-41b6-8cb7-77cc83800e3c", "value": "O1", "valueKey": "OneTrustApp.OM.CustomEntity.Attributes.bd2dc6a3-9545-4081-8506-f9df07266773", "disabled": false } ] } ``` ``` -------------------------------- ### Get List of Emission Factors Request Source: https://developer.onetrust.com/onetrust/reference/getAllEmissionFactorsBasicEntityDetails This is an example of a GET request to retrieve a list of emission factors. The hostname can be customized based on your OneTrust instance. ```http GET https://{hostname}/api/esg-management/v1/emission-factors ``` ```http GET https://trial.onetrust.com/api/esg-management/v1/emission-factors ``` -------------------------------- ### Create Project Object Example Source: https://developer.onetrust.com/onetrust/reference/addentityusingentitytypeidorentitytypenameusingpost This example demonstrates how to create a new project object with basic fields and one attribute. Ensure you provide either the entityTypeIdentifier or entityTypeName in the query parameters. ```json { "name": "test", "attributes": { "description": [ { "value": "desc" } ], "status": [ { "id": "23d1e72f-d3ce-43a2-bb72-89cc2edaa6fa" } ], "projectOwner": [ { "id": "41955b71-e581-4187-ab6c-d00d1403350c" } ], "type": [ { "value": "AI" } ], "deadline": [ { "value": "2025-06-29" } ], "intendedUse": [ { "value": "test" } ], "businessValue": [ { "id": null, "value": "1", "valueKey": null } ], "businessValueLevel": [ { "id": "ba5e31b5-76e2-43fe-a17f-67ac3482b9f9", "value": "Low" } ] } } ``` -------------------------------- ### Get Related Entities Source: https://developer.onetrust.com/onetrust/reference/getrelatedentitiesforanentityusingpost This example demonstrates how to retrieve related entities for a given AISystem. The request body can be used to specify criteria for filtering or selecting related entities, although in this example, it's used to provide context for the 'Related Entities' example. ```APIDOC ## POST /related-entities ### Description Retrieves a list of entities related to a specified entity. This endpoint is useful for discovering connections and dependencies between different entities within the system. ### Method POST ### Endpoint /related-entities ### Request Body - **content** (array) - Required - A list of related entity objects. - **createdDate** (string) - The date when the related entity was created. - **id** (string) - The unique identifier of the related entity. - **lastUpdatedDate** (string) - The date when the related entity was last updated. - **relationshipTypeDetail** (object) - Details about the relationship type. - **id** (string) - The unique identifier of the relationship type. - **name** (string) - The name of the relationship type. - **nameKey** (string) - The key for the relationship type name. - **schemaName** (string) - The schema name for the relationship type. - **seeded** (boolean) - Indicates if the relationship type is seeded. - **moduleName** (string) - The module name associated with the relationship type. - **description** (string) - A description of the relationship type. - **descriptionKey** (string) - The key for the relationship type description. - **entityType1ToEntityType2EntityLinkName** (string) - The name of the link from entity type 1 to entity type 2. - **entityType1ToEntityType2EntityLinkNameKey** (string) - The key for the link name from entity type 1 to entity type 2. - **entityType2ToEntityType1EntityLinkName** (string) - The name of the link from entity type 2 to entity type 1. - **entityType2ToEntityType1EntityLinkNameKey** (string) - The key for the link name from entity type 2 to entity type 1. - **enableAudit** (boolean) - Indicates if audit is enabled for the relationship type. - **allowNewCustomLinkAssociation** (boolean) - Indicates if new custom link associations are allowed. - **auditFields** (object) - Audit fields for the relationship type. - **createdDate** (string) - The creation date of the audit fields. - **lastUpdatedDate** (string) - The last updated date of the audit fields. - **source** (object) - Details about the source entity. - **linkEntityDetail** (object) - Extended details for the linked entity. - **extendedBaseAttributes** (object) - Extended base attributes. - **displayLabel** (string) - The display label for the linked entity. - **id** (string) - The unique identifier of the source entity. - **number** (integer) - The number of the source entity. - **name** (string) - The name of the source entity. - **entityType** (object) - Details about the entity type of the source entity. - **id** (string) - The unique identifier of the entity type. - **name** (string) - The name of the entity type. - **nameKey** (string) - The key for the entity type name. - **seeded** (boolean) - Indicates if the entity type is seeded. - **moduleName** (string) - The module name associated with the entity type. - **schemaName** (string) - The schema name for the entity type. - **deleted** (boolean) - Indicates if the source entity is deleted. - **target** (object) - Details about the target entity. - **linkEntityDetail** (object) - Extended details for the linked entity. - **extendedBaseAttributes** (object) - Extended base attributes. - **displayLabel** (string) - The display label for the linked entity. - **id** (string) - The unique identifier of the target entity. - **number** (integer) - The number of the target entity. - **name** (string) - The name of the target entity. - **entityType** (object) - Details about the entity type of the target entity. - **id** (string) - The unique identifier of the entity type. - **name** (string) - The name of the entity type. - **nameKey** (string) - The key for the entity type name. - **seeded** (boolean) - Indicates if the entity type is seeded. - **moduleName** (string) - The module name associated with the entity type. - **schemaName** (string) - The schema name for the entity type. - **deleted** (boolean) - Indicates if the target entity is deleted. - **number** (integer) - The total number of elements returned. - **size** (integer) - The number of elements per page. - **totalElements** (integer) - The total number of elements available. - **first** (boolean) - Indicates if this is the first page of results. - **last** (boolean) - Indicates if this is the last page of results. - **hasContent** (boolean) - Indicates if the response has content. - **numberOfElements** (integer) - The number of elements in the current response. - **totalPages** (integer) - The total number of pages. ### Request Example ```json { "content": [ { "createdDate": "2026-02-19T06:13:22.810Z", "id": "8fd085db-f213-4690-8d5a-100449ce880c", "lastUpdatedDate": "2026-02-19T06:13:22.810Z", "relationshipTypeDetail": { "id": "8857005c-662f-4f90-9e4e-481b225a666a", "name": "ai-system-composition", "nameKey": "CE.Link.AISystemComposition.Name", "schemaName": "ai-system-composition", "seeded": true, "moduleName": "CustomEntityManagement", "description": "Defines a compositional relationship between AI Systems where one system is an integral part or component of another system", "descriptionKey": "CE.Link.AISystemComposition.Description", "entityType1ToEntityType2EntityLinkName": "is composed of", "entityType1ToEntityType2EntityLinkNameKey": "CE.Link.AISystemComposition.ForwardLabel", "entityType2ToEntityType1EntityLinkName": "is a component of", "entityType2ToEntityType1EntityLinkNameKey": "CE.Link.AISystemComposition.BackwardLabel", "enableAudit": true, "allowNewCustomLinkAssociation": true, "auditFields": { "createdDate": "2025-12-08T15:19:47.897Z", "lastUpdatedDate": "2025-12-08T15:19:47.897Z" } }, "source": { "linkEntityDetail": { "extendedBaseAttributes": {}, "displayLabel": "AISystem 1" }, "id": "0f79003f-b177-4f02-aa83-9bf11deec7c7", "number": 1, "name": "AISystem 1", "entityType": { "id": "8a0b318a-d206-4ff9-b1db-00c8c8611d37", "name": "aisystems", "nameKey": "CE.AISystems.Name", "seeded": true, "moduleName": "AIGovernance", "schemaName": "aisystems" }, "deleted": false }, "target": { "linkEntityDetail": { "extendedBaseAttributes": {}, "displayLabel": "Model Test" }, "id": "296c0a2d-b5f6-450d-8b13-3c2327775042", "number": 2, "name": "Model Test", "entityType": { "id": "963bbab3-8bc9-4787-9ebb-a502775bef54", "name": "models", "nameKey": "CE.Models.Name", "seeded": true, "moduleName": "AIGovernance", "schemaName": "models" }, "deleted": false } } ], "number": 0, "size": 20, "totalElements": 1, "first": true, "last": true, "hasContent": true, "numberOfElements": 1, "totalPages": 1 } ``` ### Response #### Success Response (200) - **content** (array) - A list of related entity objects. - **number** (integer) - The total number of elements returned. - **size** (integer) - The number of elements per page. - **totalElements** (integer) - The total number of elements available. - **first** (boolean) - Indicates if this is the first page of results. - **last** (boolean) - Indicates if this is the last page of results. - **hasContent** (boolean) - Indicates if the response has content. - **numberOfElements** (integer) - The number of elements in the current response. - **totalPages** (integer) - The total number of pages. #### Response Example ```json { "content": [ { "createdDate": "2026-02-19T06:13:22.810Z", "id": "8fd085db-f213-4690-8d5a-100449ce880c", "lastUpdatedDate": "2026-02-19T06:13:22.810Z", "relationshipTypeDetail": { "id": "8857005c-662f-4f90-9e4e-481b225a666a", "name": "ai-system-composition", "nameKey": "CE.Link.AISystemComposition.Name", "schemaName": "ai-system-composition", "seeded": true, "moduleName": "CustomEntityManagement", "description": "Defines a compositional relationship between AI Systems where one system is an integral part or component of another system", "descriptionKey": "CE.Link.AISystemComposition.Description", "entityType1ToEntityType2EntityLinkName": "is composed of", "entityType1ToEntityType2EntityLinkNameKey": "CE.Link.AISystemComposition.ForwardLabel", "entityType2ToEntityType1EntityLinkName": "is a component of", "entityType2ToEntityType1EntityLinkNameKey": "CE.Link.AISystemComposition.BackwardLabel", "enableAudit": true, "allowNewCustomLinkAssociation": true, "auditFields": { "createdDate": "2025-12-08T15:19:47.897Z", "lastUpdatedDate": "2025-12-08T15:19:47.897Z" } }, "source": { "linkEntityDetail": { "extendedBaseAttributes": {}, "displayLabel": "AISystem 1" }, "id": "0f79003f-b177-4f02-aa83-9bf11deec7c7", "number": 1, "name": "AISystem 1", "entityType": { "id": "8a0b318a-d206-4ff9-b1db-00c8c8611d37", "name": "aisystems", "nameKey": "CE.AISystems.Name", "seeded": true, "moduleName": "AIGovernance", "schemaName": "aisystems" }, "deleted": false }, "target": { "linkEntityDetail": { "extendedBaseAttributes": {}, "displayLabel": "Model Test" }, "id": "296c0a2d-b5f6-450d-8b13-3c2327775042", "number": 2, "name": "Model Test", "entityType": { "id": "963bbab3-8bc9-4787-9ebb-a502775bef54", "name": "models", "nameKey": "CE.Models.Name", "seeded": true, "moduleName": "AIGovernance", "schemaName": "models" }, "deleted": false } } ], "number": 0, "size": 20, "totalElements": 1, "first": true, "last": true, "hasContent": true, "numberOfElements": 1, "totalPages": 1 } ``` ### Error Handling - **400 Bad Request**: The request was malformed or invalid. - **401 Unauthorized**: Authentication credentials were not provided or were invalid. - **403 Forbidden**: The authenticated user does not have permission to perform this action. - **429 Too Many Requests**: The rate limit for the API has been exceeded. See [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview) for more information. ``` -------------------------------- ### Create Project Request Example Source: https://developer.onetrust.com/onetrust/reference/addentityusingentitytypeidorentitytypenameusingpost This example demonstrates the structure of a POST request to create a new project. It includes essential fields like name and organization ID, along with attribute values. ```json { "name": "Project_03", "attributes": { "attributeMultiSelectValue.value1": [ { "id": "43496a9a-8319-49df-b5c3-7fdd2d31ee3f" } ], "attributeSingleSelectValue.value1": [ { "id": "b0f49d9a-225d-41b6-8cb7-77cc83800e3c" } ], "CE.Projects.Attribute.BusinessValueLevel.Option.Low": [ { "valueKey": "CE.Projects.Attribute.BusinessValueLevel.Option.Low", "colorCode": "#CEE1EA" } ] }, "organization": { "id": "c9e5a35b-9be7-4dd6-adac-0bee7c02384f" } } ``` -------------------------------- ### Create Comprehensive Task Source: https://developer.onetrust.com/onetrust/reference/createtaskusingpost_1 Use this example to create a detailed task, specifying all available optional fields. This allows for granular control over task properties and assignments. ```json { "parentEntityId": "c37283de-c93e-4da6-a3da-0c1791da5e33", "taskName": "task_04", "description": "
desc
", "assigneeId": "41955b71-e581-4187-ab6c-d00d1403350c", "deadline": "2025-06-30T00:00:00.000", "orgGroupId": "c9e5a35b-9be7-4dd6-adac-0bee7c02384f", "taskTypeNameKey": "ef4e5bf9-7462-43af-b74f-72b61308629b", "priority": "MEDIUM", "collaborators": [ { "collaboratorId": "0d9739ff-541c-48d9-9861-c9b94ea6c1ae", "type": "GROUP" } ] } ```