Photos /environment/photos

The temporary photos of the current person.

Reading

GET /environment/photos HTTP/1.1
Host: localhost:3000

Permissions

  • The applied permissions to retrieve the parent environment are required.

Fields

An array of Photo objects attached to the current person, whose its retrieve permissions are granted, and whose its tmp field is set to true.

Publishing

POST /environment/photos HTTP/1.1
Host: localhost:3000

Permissions

  • An access token (pointing to an user) with publish_photos permission is required.

Fields

Name Description Type

source

The photo, encoded as form data.
Either this or url field is required, but both can't be used together.

multipart/form-data

url

The url of a photo that is already uploaded to the internet.
Either this or source field is required, but both can't be used together.

string

Response

If successful :

{
    "success" : true,
    "_id" : "..."
}

Otherwise a relevant error message will be returned.

Updating

You can update photos by using the /photo edge.

Deleting

You can delete photos by using the /photo edge.