Smriti API (24.02.29)
Download OpenAPI specification:Download
Smarter Home for all your Photos and Videos
Get all existing mediaItems
Get all existing mediaItems
Authorizations:
query Parameters
page | number Default: 1 Pagination page |
limit | number Default: 15 Pagination limit |
type | string Example: type=video MediaItem Type |
category | string Example: category=live MediaItem Category |
Responses
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
]
Get an existing mediaItem
Get an existing mediaItem
Authorizations:
path Parameters
id required | string <uuid> ID of mediaItem |
Responses
Response samples
- 200
{- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
Update an existing mediaItem
Update an existing mediaItem
Authorizations:
path Parameters
id required | string <uuid> ID of mediaItem |
Request Body schema: application/jsonrequired
MediaItem request body
description | string |
favourite | boolean |
hidden | boolean |
Responses
Request samples
- Payload
{- "description": "Pictures from Wedding of Jane and Doe",
- "favourite": true,
- "hidden": false
}
Get places from an existing mediaItem
Get places from an existing mediaItem
Authorizations:
path Parameters
id required | string <uuid> ID of mediaItem |
Responses
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "postcode": 421201,
- "town": "Dallas",
- "city": "Mumbai",
- "state": "Washington",
- "country": "India",
- "coverMediaItemId": "102dc522de-1669-48a4-8270-4950a0237599",
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z",
- "coverMediaItem": {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
}
]
Get things from an existing mediaItem
Get things from an existing mediaItem
Authorizations:
path Parameters
id required | string <uuid> ID of mediaItem |
Responses
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "name": "Cars",
- "coverMediaItemId": "102dc522de-1669-48a4-8270-4950a0237599",
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z",
- "coverMediaItem": {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
}
]
Get people from an existing mediaItem
Get people from an existing mediaItem
Authorizations:
path Parameters
id required | string <uuid> ID of mediaItem |
Responses
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "name": "Cars",
- "coverMediaItemId": "102dc522de-1669-48a4-8270-4950a0237599",
- "coverMediaItemFaceId": "102dc522de-1669-48a4-8270-4950a0237599",
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z",
- "coverMediaItemFace": {
- "thumbnail": "base-64-thumbnail-image"
}
}
]
Get albums from an existing mediaItem
Get albums from an existing mediaItem
Authorizations:
path Parameters
id required | string <uuid> ID of mediaItem |
Responses
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "name": "Jane's Wedding",
- "description": "Pictures from Wedding of Jane and Doe",
- "coverMediaItemId": "102dc522de-1669-48a4-8270-4950a0237599",
- "shared": true,
- "hidden": false,
- "mediaItemsCount": 42,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z",
- "coverMediaItem": {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
}
]
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
]
Add favourite mediaItems
Add favourite mediaItems
Authorizations:
Request Body schema: application/jsonrequired
List of mediaitems request
mediaItems | Array of strings <uuid> [ items <uuid > ] |
Responses
Request samples
- Payload
{- "mediaItems": [
- "102dc522de-1669-48a4-8270-4950a0237599"
]
}
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
]
Add hidden mediaItems
Add hidden mediaItems
Authorizations:
Request Body schema: application/jsonrequired
List of mediaitems request
mediaItems | Array of strings <uuid> [ items <uuid > ] |
Responses
Request samples
- Payload
{- "mediaItems": [
- "102dc522de-1669-48a4-8270-4950a0237599"
]
}
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
]
Add deleted mediaItems
Add deleted mediaItems
Authorizations:
Request Body schema: application/jsonrequired
List of mediaitems request
mediaItems | Array of strings <uuid> [ items <uuid > ] |
Responses
Request samples
- Payload
{- "mediaItems": [
- "102dc522de-1669-48a4-8270-4950a0237599"
]
}
Get all mediaItems which are N years ago from given month & date
Get all mediaItems which are N years ago from given month & date
Authorizations:
path Parameters
monthDate required | string Month and Date in MMDD format |
Responses
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
]
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "postcode": 421201,
- "town": "Dallas",
- "city": "Mumbai",
- "state": "Washington",
- "country": "India",
- "coverMediaItemId": "102dc522de-1669-48a4-8270-4950a0237599",
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z",
- "coverMediaItem": {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
}
]
Get mediaItems of a place entity
Get mediaItems of a place entity
Authorizations:
path Parameters
id required | string <uuid> ID of place |
Responses
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
]
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "name": "Cars",
- "coverMediaItemId": "102dc522de-1669-48a4-8270-4950a0237599",
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z",
- "coverMediaItem": {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
}
]
Get mediaItems of a thing entity
Get mediaItems of a thing entity
Authorizations:
path Parameters
id required | string <uuid> ID of thing |
Responses
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
]
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "name": "Cars",
- "coverMediaItemId": "102dc522de-1669-48a4-8270-4950a0237599",
- "coverMediaItemFaceId": "102dc522de-1669-48a4-8270-4950a0237599",
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z",
- "coverMediaItemFace": {
- "thumbnail": "base-64-thumbnail-image"
}
}
]
Update a people entity
Update a people entity
Authorizations:
path Parameters
id required | string <uuid> ID of people |
Request Body schema: application/jsonrequired
People request body
name | string |
hidden | boolean |
coverMediaItemId | string <uuid> |
Responses
Request samples
- Payload
{- "name": "John Doe",
- "hidden": false,
- "coverMediaItemId": "102dc522de-1669-48a4-8270-4950a0237599"
}
Get mediaItems of a people entity
Get mediaItems of a people entity
Authorizations:
path Parameters
id required | string <uuid> ID of people |
Responses
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
]
Get all existing albums
Get all existing albums
Authorizations:
query Parameters
sort | string Default: "name" Example: sort=updatedAt Sort order |
page | number Default: 1 Pagination page |
limit | number Default: 15 Pagination limit |
shared | boolean Example: shared=false Shared |
Responses
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "name": "Jane's Wedding",
- "description": "Pictures from Wedding of Jane and Doe",
- "coverMediaItemId": "102dc522de-1669-48a4-8270-4950a0237599",
- "shared": true,
- "hidden": false,
- "mediaItemsCount": 42,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z",
- "coverMediaItem": {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
}
]
Create a new album
Create a new album
Authorizations:
Request Body schema: application/jsonrequired
Album request body
name | string |
description | string |
coverMediaItemId | string <uuid> |
shared | boolean |
hidden | boolean |
Responses
Request samples
- Payload
{- "name": "Jane's Wedding",
- "description": "Pictures from Wedding of Jane and Doe",
- "coverMediaItemId": "102dc522de-1669-48a4-8270-4950a0237599",
- "shared": true,
- "hidden": false
}
Get an existing album
Get an existing album
Authorizations:
path Parameters
id required | string <uuid> ID of album |
Responses
Response samples
- 200
{- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "name": "Jane's Wedding",
- "description": "Pictures from Wedding of Jane and Doe",
- "coverMediaItemId": "102dc522de-1669-48a4-8270-4950a0237599",
- "shared": true,
- "hidden": false,
- "mediaItemsCount": 42,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z",
- "coverMediaItem": {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
}
Update an existing album
Update an existing album
Authorizations:
path Parameters
id required | string <uuid> ID of album |
Request Body schema: application/jsonrequired
Album request body
name | string |
description | string |
coverMediaItemId | string <uuid> |
shared | boolean |
hidden | boolean |
Responses
Request samples
- Payload
{- "name": "Jane's Wedding",
- "description": "Pictures from Wedding of Jane and Doe",
- "coverMediaItemId": "102dc522de-1669-48a4-8270-4950a0237599",
- "shared": true,
- "hidden": false
}
Get mediaItems of an existing album
Get mediaItems of an existing album
Authorizations:
path Parameters
id required | string <uuid> ID of album |
Responses
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
]
Add mediaItems to an existing album
Add mediaItems to an existing album
Authorizations:
path Parameters
id required | string <uuid> ID of album |
Request Body schema: application/jsonrequired
List of mediaitems request
mediaItems | Array of strings <uuid> [ items <uuid > ] |
Responses
Request samples
- Payload
{- "mediaItems": [
- "102dc522de-1669-48a4-8270-4950a0237599"
]
}
User Login
User Login
Request Body schema: application/jsonrequired
Login request body
username | string |
password | string |
Responses
Request samples
- Payload
{- "username": "prabhuomkar",
- "password": "Pwd1234!"
}
Response samples
- 200
{- "accessToken": "string",
- "refreshToken": "string"
}
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "name": "John Doe",
- "username": "johndoe",
- "password": "somesecrethash",
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
]
Get an existing user
Get an existing user
Authorizations:
path Parameters
id required | string <uuid> ID of user |
Responses
Response samples
- 200
{- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "name": "John Doe",
- "username": "johndoe",
- "password": "somesecrethash",
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
Update an existing user
Update an existing user
Authorizations:
path Parameters
id required | string <uuid> ID of user |
Request Body schema: application/jsonrequired
User request body
name | string |
username | string |
password | string |
Responses
Request samples
- Payload
{- "name": "John Doe",
- "username": "johndoe",
- "password": "somesecrethash"
}
Search existing mediaItems
Search existing mediaItems
Authorizations:
query Parameters
q | string Example: q=pizza Search Query |
Responses
Response samples
- 200
[- {
- "id": "102dc522de-1669-48a4-8270-4950a0237599",
- "userId": "102dc522de-1669-48a4-8270-4950a0237599",
- "filename": "IMG_4942.jpg",
- "description": "Picture of a pizza from New York",
- "mimeType": "image/jpeg",
- "placeholder": "base-64-placeholder-image",
- "favourite": false,
- "shared": true,
- "hidden": false,
- "deleted": false,
- "status": "UNSPECIFIED",
- "mediaItemType": "photo",
- "mediaItemCategory": "default",
- "width": 1080,
- "height": 720,
- "creationTime": "2022-09-14T16:58:28Z",
- "latitude": 19.384982,
- "longitude": -70.638324,
- "cameraMake": "Apple",
- "cameraModel": "iPhone 12",
- "focalLength": "5.49 mm",
- "apertureFNumber": "f/1.8",
- "isoEquivalent": "ISO758",
- "exposureTime": "1/20",
- "fps": 60,
- "createdAt": "2022-09-14T16:58:28Z",
- "updatedAt": "2022-09-14T16:58:28Z"
}
]