Fork me on GitHub
Phraseanet Documentation

Records SetCollection

About

Moves a record to another collection

/api/v1/records/{databox_id}/{record_id}/setcollection/
Informations  
HTTP Method POST
Requires Authentication Yes

Parameters

Parameters Type Information
databox_id integer The databox id of the record
record_id integer The record_id
base_id integer The base_id of the destination collection

Response Fields

Field Description
record The record updated

Response sample

{
    "meta": {
        "api_version": "1.3",
        "request": "POST /api/v1/records/52/4102/setcollection/",
        "response_time": "2011-07-27T13:59:57+02:00",
        "http_code": 200,
        "error_type": null,
        "error_message": null,
        "error_details": null,
        "charset": "UTF-8"
    },
    "response": {
        "record": {
            "databox_id": 2,
            "record_id": 132,
            "mime_type": "image/jpeg",
            "title": "photo03.JPG",
            "original_name": "photo03.JPG",
            "last_modification": "2012-06-13T13:50:29+02:00",
            "created_on": "2012-06-13T13:49:29+02:00",
            "collection_id": 1,
            "sha256": "60691f538bdac78197004edcfb77dc772d824daeca54bd13e59f6b485f0293bc",
            "thumbnail": {
                "permalink": {
                    "created_on": "2012-06-13T13:51:06+02:00",
                    "id": 343,
                    "is_activated": true,
                    "label": "photo03JPG",
                    "last_modified": "2012-06-13T13:51:06+02:00",
                    "page_url": "http://domain.tld/permalink/v1/2/132/thumbnail/?token=5MuXBQ55",
                    "url": "http://domain.tld/permalink/v1/2/132/thumbnail/photo03.JPG?token=5MuXBQ55",
                    "download_url": "http://domain.tld/permalink/v1/2/132/thumbnail/photo03.JPG?token=5MuXBQ55&download"
                },
                "height": 113,
                "width": 150,
                "filesize": 4271,
                "devices": [
                    "screen"
                ],
                "player_type": "IMAGE",
                "mime_type": "image/jpeg"
            },
            "technical_informations": {
                "Aperture": 2.4,
                "CameraModel": "iPhone 4S",
                "Channels": 3,
                "ColorDepth": 8,
                "ColorSpace": "RGB",
                "FileSize": 2851233,
                "FlashFired": 0,
                "FocalLength": 4.28,
                "Height": 2448,
                "HyperfocalDistance": 2.0773522348635,
                "ISO": 400,
                "LightValue": 4.847996906555,
                "MimeType": "image/jpeg",
                "ShutterSpeed": 0.05,
                "Width": 3264
            },
            "phrasea_type": "image",
            "uuid": "d91372ec-ea94-4e8a-bf26-065ad8684180"
        }
    }
}