diff --git a/swagger.yaml b/swagger.yaml index e65630c..bd0e7e9 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -3336,13 +3336,16 @@ paths: properties: variants: type: array - description: The relationship variants. + minItems: 1 + maxItems: 2 + description: The relationship variants items: type: object properties: name: type: string - description: The relationship variant name. + maxLength: 35 chars + description: The relationship variant name example: Partner responses: 201: @@ -3359,12 +3362,8 @@ paths: $ref: '#/components/schemas/Success/properties/timestamp' data: properties: - relationship_types: - type: array - items: - properties: - relationship_type: - $ref: '#/components/schemas/Relationship_Type' + relationship_type: + $ref: '#/components/schemas/Relationship_Type' 400: $ref: '#/components/responses/400' 401: @@ -3400,7 +3399,7 @@ paths: $ref: '#/components/schemas/Success/properties/timestamp' data: properties: - deal: + relationship_type: $ref: '#/components/schemas/Relationship_Type' 400: $ref: '#/components/responses/400' @@ -3429,7 +3428,9 @@ paths: properties: variants: type: array - description: The relationship variants. + minItems: 1 + maxItems: 2 + description: The relationship variants items: type: object properties: @@ -3440,7 +3441,8 @@ paths: example: 5aaa9b059007ba08c9ebaf59 name: type: string - description: The relationship variant name. + maxLength: 35 chars + description: The relationship variant name example: Partner responses: 200: @@ -3457,7 +3459,7 @@ paths: $ref: '#/components/schemas/Success/properties/timestamp' data: properties: - deal: + relationship_type: $ref: '#/components/schemas/Relationship_Type' 400: $ref: '#/components/responses/400' @@ -8990,7 +8992,7 @@ components: description: >- The relationship types that identifies the relationships between the contacts. required: - - relationship_variants + - variants properties: id: type: string @@ -9000,11 +9002,13 @@ components: example: 5aaa9b059007ba08c9ebaf58 symmetrical: type: boolean - description: Is the relationship symmetrical? (read only). + description: Is the relationship symmetrical? (read only) readOnly: true example: true - relationship_variants: + variants: type: array + minItems: 1 + maxItems: 2 items: type: object properties: @@ -9016,6 +9020,7 @@ components: example: 5aaa9b059007ba08c9ebaf59 name: type: string + maxLength: 35 chars description: The relationship variant name example: Partner created_at: @@ -10815,18 +10820,10 @@ components: name: search in: query required: false - description: Search relationship types by relationship variants + description: Search relationship types by relationship variant name schema: type: string example: Partner - query_relationships_search: - name: search - in: query - required: false - description: Search relationships by contact name or relationship-variant name - schema: - type: string - example: Jack Aranda query_contacts_owner_id: name: owner_id in: query