# Save Product Relationships Save Product Relationships Endpoint: POST /rest/2.0/PRODUCT_RELATIONSHIPS Version: 1.0 Security: JWT ## Header parameters: - `sessionId` (string, required) ## Request fields (application/json; charset=utf-8): - `brmObjects` (object) - `brmObjects.Created` (string) System controlled field: Date and time the record was created - `brmObjects.Updated` (string) System controlled field: Date and time the record was last updated - `brmObjects.RelationshipType` (string, required) Relationship Type - `brmObjects.UpdatedUserId` (string) System controlled field: Id of the last user that updated the record - `brmObjects.Id` (string, required) Id: Primary key - `brmObjects.CreatedUserId` (string) System controlled field: Id of the user that created the record - `brmObjects.SourcePackageProductId` (integer) SourcePackageProductId: Source Package Product - `brmObjects.SourceProductId` (integer) SourceProductId: Source Product - `brmObjects.ParentProductRelationshipId` (integer) Parent Product Relationship Id: Parent Product Relationship - `brmObjects.QuoteRelationshipGroupId` (integer) QuoteRelationshipGroupId: Quote Relationship Group - `brmObjects.RelationPackageId` (integer) RelationPackageId: Relation Package - `brmObjects.CountOfChoosableAddons` (string) Count of choosable addons - `brmObjects.SourcePackageId` (integer) SourcePackageId: Source Package - `brmObjects.RelationProductId` (integer) RelationProductId: Relation Product - `brmObjects.RelationPackageProductId` (integer) RelationPackageProductId: Relation Package Product ## Response 200 fields (application/json): - `retrieveResponse` (object) - `retrieveResponse.Created` (string) System controlled field: Date and time the record was created - `retrieveResponse.Updated` (string) System controlled field: Date and time the record was last updated - `retrieveResponse.RelationshipType` (string) Relationship Type - `retrieveResponse.UpdatedUserId` (string) System controlled field: Id of the last user that updated the record - `retrieveResponse.Id` (string) Id: Primary key - `retrieveResponse.CreatedUserId` (string) System controlled field: Id of the user that created the record - `retrieveResponse.SourcePackageProductId` (integer) SourcePackageProductId: Source Package Product - `retrieveResponse.SourceProductId` (integer) SourceProductId: Source Product - `retrieveResponse.ParentProductRelationshipId` (integer) Parent Product Relationship Id: Parent Product Relationship - `retrieveResponse.QuoteRelationshipGroupId` (integer) QuoteRelationshipGroupId: Quote Relationship Group - `retrieveResponse.RelationPackageId` (integer) RelationPackageId: Relation Package - `retrieveResponse.CountOfChoosableAddons` (string) Count of choosable addons - `retrieveResponse.SourcePackageId` (integer) SourcePackageId: Source Package - `retrieveResponse.RelationProductId` (integer) RelationProductId: Relation Product - `retrieveResponse.RelationPackageProductId` (integer) RelationPackageProductId: Relation Package Product ## Response 400 fields (application/json): - `error` (string) Bad request - `message` (string) Bad request ## Response 401 fields (application/json): - `error` (string) Unauthorized - `message` (string) Unauthorized ## Response 404 fields (application/json): - `error` (string) Not found - `message` (string) Not found ## Response 429 fields (application/json): - `error` (string) Too many requests - `message` (string) Too many requests ## Response 500 fields (application/json): - `error` (string) Internal error - `message` (string) Internal error