Creates a new media group, which serves as a logical folder to organize uploaded media assets. This is a POST operation that accepts a JSON body defining group metadata such as name and organization ID. The JSON response representing the created media group.
Body:{ "is_public": "true # Type: boolean", "name": "Library Receipts # Type: string", "organization_id": "432 # Type: integer"}
| Name | Type | Required Field | Description |
|---|---|---|---|
| is_public | boolean | True | This property determines if the PUBLIC_URLs of all the media (files) in the media group are accessible without user "authentication" & "authorization" |
| name | string | True | The name of the media group. This is more like a directory name |
| organization_id | integer | True | The numeric ID of the of the account |
Updates an existing media group with new metadata such as name, organization ID, and visibility status. This is a PUT operation that accepts a JSON body and returns the updated media group object in JSON format.
Body:{ "id": "113 # Type: integer", "is_public": "true # Type: boolean", "name": "Library Receipts # Type: string", "organization_id": "24 # Type: integer"}
| Name | Type | Required Field | Description |
|---|---|---|---|
| id | integer | True | The numeric ID of the of the Media Group |
| is_public | boolean | True | This property determines if the PUBLIC_URLs of all the media (files) in the media group are accessible without user "authentication" & "authorization" |
| name | string | True | The name of the media group. This is more like a directory name |
| organization_id | integer | True | The numeric ID of the of the account |
Retrieves all media groups associated with a specified account ID. This is a GET operation. Returns a paginated JSON object containing a list of media groups.
| Name | Type | Required Field | Description |
|---|---|---|---|
| organization_id | integer | True | The numeric ID of the of the account |
| page_number | integer | False | The page number to retrieve (starting from 0). Should be included in the query string. Optional. |
| page_size | integer | False | The number of records to return per page. For example: 25. Should be included in the query string. Optional. |
| sort_ascending | boolean | False | Flag indicating the sorted order of the result. True is ascending, while false is descending |
| sort_by | string | False | Flag indicating the property to which records should be sorted by |
Retrieves details of a media group specified by media_group_id. This is a GET operation. Returns a JSON object with metadata including name, creation time, and organization ID.
| Name | Type | Required Field | Description |
|---|---|---|---|
| media_group_id | integer | True | The ID of the media group. Type: integer (int64). Must be included in the URL path. Required. |
Deletes the specified media group by its ID. This is a DELETE operation. Returns HTTP 200 or 204 if successful.
| Name | Type | Required Field | Description |
|---|---|---|---|
| media_group_id | integer | True | The ID of the media group. Type: integer (int64). Must be included in the URL path. Required. |
Retrieves the content within a specified media group, supporting pagination and MIME type filtering. This is a GET operation. The response is a paged JSON array of media objects matching the query filters.
| Name | Type | Required Field | Description |
|---|---|---|---|
| media_group_id | integer | True | The ID of the media group. Type: integer (int64). Must be included in the URL path. Required. |
| file_type | string | False | The FileType type filter for media (e.g., image, video, document). Type: string. Should be included in the query string. Optional. |
| page_number | integer | False | The page number to retrieve (starting from 0). Should be included in the query string. Optional. |
| page_size | integer | False | The number of records to return per page. For example: 25. Should be included in the query string. Optional. |
| sort_ascending | boolean | False | Flag indicating the sorted order of the result. True is ascending, while false is descending |
| sort_by | string | False | Flag indicating the property to which records should be sorted by |