Opportunity Management
Contained Items Management
Contained Items Management provides functionality to manage items associated with opportunities, such as documents, notes, or forms. This service enables CRUD (Create, Read, Update, Delete) operations for contained items, as well as adding existing documents and retrieving items by opportunity ID.
Contained Items Operations
Contained Items Operations provide comprehensive management of items linked to opportunities, including creation, retrieval, updates, and deletion.
Contained Items Operations - Create Contained Item POST /v1/api/contained_items
| Resource URL | /v1/api/contained_items |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Parameters
| Parameter | Description | Required | Type | Default Value |
|---|---|---|---|---|
| item_type | Type of the contained item (e.g., notes, form, document). Enum: ["notes", "form", "document"] | No | String | "document" |
| source | Source of the contained item | Yes | String | N/A |
| opportunity_id | ID of the opportunity this item is associated with | Yes | String | N/A |
| document_name | Name of the document (if applicable) | No | String | N/A |
| uploaded_user | User who uploaded the item | Yes | String | N/A |
| comments | Additional comments about the item | No | String or Null | Null |
| document_status | Status of the document (if applicable) | No | String or Null | Null |
| document_collection | Collection the document belongs to (if applicable) | No | String or Null | Null |
| expire_datetime | Date and time when the item expires | Yes | String (date-time) | 2025-04-07T04:38:43.537Z |
| meta_data | Metadata associated with the item | Yes | String | N/A |
| version | Version of the item (if applicable) | No | String or Null | Null |
| file | File content to upload (binary data) | No | Binary or Null | Null |
| session_id | Session ID for the upload | No | Integer or Null | 3.007808405211056e+37 |
Example Request
Example Response
HTTP Responses
| HTTP Code | Message |
|---|---|
| 200 | Successful Response |
| 422 | Validation Error |
Contained Items Operations - Read Contained Items GET /v1/api/contained_items
| Resource URL | /v1/api/contained_items |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Parameters
| Parameter | Description |
|---|---|
| page_no | Query parameter (optional): Page number. Default: 1 |
| page_size | Query parameter (optional): Items per page. Default: 10, Max: 100 |
Example Request
Example Response
HTTP Responses
| HTTP Code | Message |
|---|---|
| 200 | Successful Response |
| 422 | Validation Error |
Contained Items Operations - Add Existing Document POST /v1/api/contained_items/add_existing_document/upload
| Resource URL | /v1/api/contained_items/add_existing_document/upload |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Parameters
| Parameter | Description | Required | Type | Default Value |
|---|---|---|---|---|
| source | Source of the existing document | Yes | String | N/A |
| opportunity_id | ID of the opportunity this document is associated with | Yes | String | N/A |
| document_id | ID of the existing document to be added | Yes | String | N/A |
| comments | Additional comments about the document | No | String or Null | Null |
Example Request
Example Response
HTTP Responses
| HTTP Code | Message |
|---|---|
| 200 | Successful Response |
| 422 | Validation Error |
Contained Items Operations - Read Contained Item GET /v1/api/contained_items/{contained_item_id}
| Resource URL | /v1/api/contained_items/{contained_item_id} |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Parameters
| Parameter | Description |
|---|---|
| contained_item_id | Path parameter: ID of the contained item to retrieve |
Example Request
Example Response
HTTP Responses
| HTTP Code | Message |
|---|---|
| 200 | Successful Response |
| 422 | Validation Error |
Contained Items Operations - Update Contained Item PATCH /v1/api/contained_items/{contained_item_id}
| Resource URL | /v1/api/contained_items/{contained_item_id} |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Parameters
| Parameter | Description |
|---|---|
| contained_item_id | Path parameter: ID of the contained item to update |
| Input JSON | Updated contained item details (request body). See ContainedItemUpdate schema. |
Example Request
Example Response
HTTP Responses
| HTTP Code | Message |
|---|---|
| 200 | Successful Response |
| 422 | Validation Error |
Contained Items Operations - Delete Contained Item DELETE /v1/api/contained_items/{contained_item_id}
| Resource URL | /v1/api/contained_items/{contained_item_id} |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Parameters
| Parameter | Description |
|---|---|
| contained_item_id | Path parameter: ID of the contained item to delete |
Example Request
Example Response
HTTP Responses
| HTTP Code | Message |
|---|---|
| 200 | Successful Response |
| 422 | Validation Error |
Contained Items Operations - Get All Contained Items by Opportunity ID GET /v1/api/contained_items/opportunity/{opportunity_id}
| Resource URL | /v1/api/contained_items/opportunity/{opportunity_id} |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Parameters
| Parameter | Description |
|---|---|
| opportunity_id | Path parameter: ID of the opportunity |
| item_type | Query parameter (optional): Filter by item type |
| page_no | Query parameter (optional): Page number. Default: 1 |
| page_size | Query parameter (optional): Items per page. Default: 10, Max: 100 |
Example Request
Example Response
HTTP Responses
| HTTP Code | Message |
|---|---|
| 200 | Successful Response |
| 422 | Validation Error |